diff --git a/includes/smarty.php b/includes/smarty.php index dafd3fc..0fd112e 100644 --- a/includes/smarty.php +++ b/includes/smarty.php @@ -86,7 +86,7 @@ if (!isset($_SESSION['errors'])) $_SESSION['errors']=array(); function add_error($error) { // If more than one arguments passed, format error message using sprintf - if (func_num_args() > 2) { + if (func_num_args() > 1) { $error = call_user_func_array( 'sprintf', array_merge(array($error), array_slice(func_get_args(), 1)) @@ -99,7 +99,7 @@ if (!isset($_SESSION['messages'])) $_SESSION['messages']=array(); function add_message($message) { // If more than one arguments passed, format message using sprintf - if (func_num_args() > 2) { + if (func_num_args() > 1) { $message = call_user_func_array( 'sprintf', array_merge(array($message), array_slice(func_get_args(), 1))