Bladeren bron

fixed sql error on insert

Piotr Labudda 9 jaren geleden
bovenliggende
commit
1fb249cdda
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      SE/se-lib/Data_Source.php

+ 1 - 1
SE/se-lib/Data_Source.php

@@ -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);