From 14d2a8f20869e11ce0dc1cd4d73084f3b396f19d Mon Sep 17 00:00:00 2001 From: dmi3yy Date: Mon, 10 Jul 2017 14:55:48 +0300 Subject: [PATCH] fix mysql_info --- assets/plugins/managermanager/modx.ddtools.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 assets/plugins/managermanager/modx.ddtools.class.php 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){