diff options
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 31316383a..6bbec2169 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1512,10 +1512,10 @@ $where = array(); - if (is_array($type)) { + if (is_array($subtype)) { $tempwhere = ""; - if (sizeof($type)) - foreach($type as $typekey => $subtypearray) { + if (sizeof($subtype)) + foreach($subtype as $typekey => $subtypearray) { foreach($subtypearray as $subtypeval) { $typekey = sanitise_string($typekey); if (!empty($subtypeval)) { |