Commit 25baa59f authored by Luke's avatar Luke

Update MysqliDb.php

parent 5923badf
......@@ -1283,6 +1283,9 @@ class MysqliDb
* @param int increment by int or float. 1 by default
*/
public function inc($num = 1) {
if(!is_numeric($num)){
trigger_error('Argument supplied to inc must be a number', E_USER_ERROR);
}
return Array ("[I]" => "+" . $num);
}
......@@ -1291,6 +1294,9 @@ class MysqliDb
* @param int increment by int or float. 1 by default
*/
public function dec ($num = 1) {
if(!is_numeric($num)){
trigger_error('Argument supplied to dec must be a number', E_USER_ERROR);
}
return Array ("[I]" => "-" . $num);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment