* [bug#62258,done,0.3h] fix tip error.
This commit is contained in:
@@ -4379,8 +4379,14 @@ class storyModel extends model
|
||||
$estimates = array();
|
||||
foreach($data->account as $key => $account)
|
||||
{
|
||||
if(!empty($data->estimate[$key]) and !is_numeric($data->estimate[$key])) dao::$errors['estimate'] = $this->lang->story->estimateMustBeNumber;
|
||||
if(!empty($data->estimate[$key]) and $data->estimate[$key] < 0) dao::$errors['estimate'] = $this->lang->story->estimateMustBePlus;
|
||||
if(!empty($data->estimate[$key]) and !is_numeric($data->estimate[$key]))
|
||||
{
|
||||
dao::$errors['estimate'] = $this->lang->story->estimateMustBeNumber;
|
||||
}
|
||||
elseif(!empty($data->estimate[$key]) and $data->estimate[$key] < 0)
|
||||
{
|
||||
dao::$errors['estimate'] = $this->lang->story->estimateMustBePlus;
|
||||
}
|
||||
if(dao::isError()) return;
|
||||
|
||||
$estimates[$account]['account'] = $account;
|
||||
|
||||
Reference in New Issue
Block a user