dever il y a 6 ans
Parent
commit
74754aec6a
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      act/lib/Num.php

+ 3 - 0
act/lib/Num.php

@@ -61,6 +61,9 @@ class Num
         } else {
             if ($update) {
                 $where['where_id'] = $info['id'];
+                if (!$info['num'] || $info['num'] < 0) {
+                    $info['num'] = 0;
+                }
                 $where['num'] = $info['num'] + $num;
                 $db->update($where);
             }