# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- a/<html>resource_functions.php (<b>Today 14:20:58</b>)</html>
+++ b/<html><b>Current File</b></html>
@@ -2819,7 +2819,7 @@
# for all the resource references in the array $refs.
# This will use a single SQL query and is therefore a much more efficient way of gathering
# resource data for a list of resources (e.g. search result display for a page of resources).
- if (count($refs)==0) {return array();} # return an empty array if no resources specified (for empty result sets)
+ if (!is_array($refs) || count($refs)==0) {return array();} # return an empty array if no resources specified (for empty result sets)
$refsin=join(",",$refs);
$results=sql_query("select d.resource,f.*, f.field_constraint,d.value from resource_type_field f left join resource_data d on d.resource_type_field=f.ref and d.resource in ($refsin) where (f.resource_type=0 or f.resource_type in (select resource_type from resource where ref=d.resource)) order by d.resource,f.order_by,f.ref");
$return=array();