diff --git a/core/model/Database.php b/core/model/Database.php index c0ae823cc..4fa4b7b01 100755 --- a/core/model/Database.php +++ b/core/model/Database.php @@ -465,7 +465,7 @@ abstract class Database extends Object { * @param array $manipulation */ function manipulate($manipulation) { - foreach($manipulation as $table => $writeInfo) { + if($manipulation) foreach($manipulation as $table => $writeInfo) { if(isset($writeInfo['fields']) && $writeInfo['fields']) { $fieldList = $columnList = $valueList = array();