diff --git a/assets/plugins/managermanager/modx.ddtools.class.php b/assets/plugins/managermanager/modx.ddtools.class.php old mode 100755 new mode 100644 index 48c3ae1c24..907ac1def3 --- a/assets/plugins/managermanager/modx.ddtools.class.php +++ b/assets/plugins/managermanager/modx.ddtools.class.php @@ -437,7 +437,7 @@ public static function updateDocument($id = 0, $update = array(), $where = ''){ ); //Проверяем сколько строк нашлось при обновлении - preg_match('/Rows matched: (\d+)/', mysql_info(), $updatedRows); + preg_match('/Rows matched: (\d+)/', $modx->db->info(), $updatedRows); //Если ничего не обновилось (не нашлось) if ($updatedRows[1] == 0){