Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.

Commit 14d2a8f

Browse files
committed
fix mysql_info
1 parent 3ba038c commit 14d2a8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/plugins/managermanager/modx.ddtools.class.php

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public static function updateDocument($id = 0, $update = array(), $where = ''){
437437
);
438438

439439
//Проверяем сколько строк нашлось при обновлении
440-
preg_match('/Rows matched: (\d+)/', mysql_info(), $updatedRows);
440+
preg_match('/Rows matched: (\d+)/', $modx->db->info(), $updatedRows);
441441

442442
//Если ничего не обновилось (не нашлось)
443443
if ($updatedRows[1] == 0){

0 commit comments

Comments
 (0)