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

Commit

Permalink
fix mysql_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmi3yy committed Jul 10, 2017
1 parent 3ba038c commit 14d2a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/plugins/managermanager/modx.ddtools.class.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 14d2a8f

Please sign in to comment.