CC-5244 : Exception when creating Smartblock

This commit is contained in:
Naomi Aro 2013-06-20 14:03:13 -04:00
parent bc16ac0793
commit 6b0ab535e5
1 changed files with 7 additions and 7 deletions

View File

@ -541,7 +541,7 @@ class Application_Form_SmartBlockCriteria extends Zend_Form_SubForm
$isValid = false; $isValid = false;
} }
// length check // length check
if (intval($d['sp_criteria_value']) >= pow(2,31)) { if ($d['sp_criteria_value'] >= pow(2,31)) {
$element->addError(_("The value should be less then 2147483648")); $element->addError(_("The value should be less then 2147483648"));
$isValid = false; $isValid = false;
} }