We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 011629e commit 07ed1b3Copy full SHA for 07ed1b3
src/Model.php
@@ -8,7 +8,7 @@
8
* Base Model
9
*
10
* @author Nick Tsai <myintaer@gmail.com>
11
- * @version 2.16.3.1
+ * @version 2.16.4
12
* @see https://github.com/yidas/codeigniter-model
13
*/
14
class Model extends \CI_Model implements \ArrayAccess
@@ -1059,7 +1059,7 @@ public function save($runValidation=true)
1059
return false;
1060
}
1061
1062
- $result = $this->update($this->_writeProperties, $this->_selfCondition, $runValidation);
+ $result = ($this->_writeProperties) ? $this->update($this->_writeProperties, $this->_selfCondition, $runValidation) : true;
1063
// Check the primary key is changed
1064
if ($result) {
1065
0 commit comments