We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5923bad commit 25baa59Copy full SHA for 25baa59
MysqliDb.php
@@ -1283,6 +1283,9 @@ public function now ($diff = null, $func = "NOW()") {
1283
* @param int increment by int or float. 1 by default
1284
*/
1285
public function inc($num = 1) {
1286
+ if(!is_numeric($num)){
1287
+ trigger_error('Argument supplied to inc must be a number', E_USER_ERROR);
1288
+ }
1289
return Array ("[I]" => "+" . $num);
1290
}
1291
@@ -1291,6 +1294,9 @@ public function inc($num = 1) {
1294
1292
1295
1293
1296
public function dec ($num = 1) {
1297
1298
+ trigger_error('Argument supplied to dec must be a number', E_USER_ERROR);
1299
1300
return Array ("[I]" => "-" . $num);
1301
1302
0 commit comments