|
|
@@ -996,7 +996,7 @@ class Data_Source {
|
|
|
}
|
|
|
|
|
|
$primaryKey = $this->_db->ADD_NEW_OBJ($this->_tbl, (object)$item);
|
|
|
- if ($primaryKey < 0) {
|
|
|
+ if ($primaryKey <= 0) {
|
|
|
$dsErrors = $this->getDbErrors();
|
|
|
$dsErrors = "Wystąpiły błędy!\n" . implode("\n", $dsErrors);
|
|
|
throw new Exception($dsErrors);
|