Fixed incorrect if-statement for error handling

This commit is contained in:
Marc Alexander
2011-04-03 01:51:54 +02:00
parent 05c426b3b8
commit 619eb19342

View File

@@ -749,7 +749,7 @@ class acp_portal
$cache->purge(); // make sure we don't get errors after re-adding a module $cache->purge(); // make sure we don't get errors after re-adding a module
// if something went wrong, handle the errors accordingly and undo the above query // if something went wrong, handle the errors accordingly and undo the above query
if (sizeof($error)) if (sizeof($error) && $error != true)
{ {
if (is_array($error)) if (is_array($error))
{ {