1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

More proper return type on validation error

This commit is contained in:
secretr
2012-02-23 08:56:33 +00:00
parent 6329c9e318
commit d9832a1bfa

View File

@@ -2704,7 +2704,7 @@ class e_admin_model extends e_front_model
$this->_db_errmsg = ''; $this->_db_errmsg = '';
if($this->hasError()/* || (!$this->data_has_changed && !$force)*/) // not appropriate here! if($this->hasError()/* || (!$this->data_has_changed && !$force)*/) // not appropriate here!
{ {
return 0; return false;
} }
$sql = e107::getDb(); $sql = e107::getDb();
$res = $sql->db_Insert($this->getModelTable(), $this->toSqlQuery('create')); $res = $sql->db_Insert($this->getModelTable(), $this->toSqlQuery('create'));