@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function selectDBObject($debug = false) { |
105 | 105 | $query = "SELECT * FROM " . $this->dbObject->getTableName() . |
106 | - ($this->conditions != ""?" WHERE " . $this->conditions:"") . " LIMIT 1"; |
|
106 | + ($this->conditions != ""?" WHERE " . $this->conditions:"") . " LIMIT 1"; |
|
107 | 107 | |
108 | 108 | if (!$debug) { |
109 | 109 | $stmt = DBCore::doSelectQuery($query); |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | return $this->selectDBObject(); |
384 | 384 | } |
385 | 385 | |
386 | - /* |
|
386 | + /* |
|
387 | 387 | * Try to call parent method __call() with same params by default |
388 | 388 | */ |
389 | 389 | $method = substr($methodName, 0, 3); |
@@ -598,7 +598,7 @@ |
||
598 | 598 | public static function deleteDBObject($dbObject) { |
599 | 599 | if (!empty($dbObject) && is_object($dbObject)) { |
600 | 600 | $query = "DELETE FROM " . $dbObject->getTableName() . |
601 | - " WHERE " . $dbObject->getIdFieldName() . " = ? LIMIT 1"; |
|
601 | + " WHERE " . $dbObject->getIdFieldName() . " = ? LIMIT 1"; |
|
602 | 602 | if (Tools::isInteger($dbObject->getId())) { |
603 | 603 | $typesString = "i"; |
604 | 604 | } else { |
@@ -139,9 +139,9 @@ |
||
139 | 139 | $typeByValue = DBField::getType($value); |
140 | 140 | if ($typeByValue != 's') { |
141 | 141 | if ($type != $typeByValue && !( |
142 | - ($type == 'd' && $typeByValue == 'i') || // We can put integer as double |
|
142 | + ($type == 'd' && $typeByValue == 'i') || // We can put integer as double |
|
143 | 143 | ($type == 's' && $typeByValue == 'i') // We can put integer as string |
144 | - ) |
|
144 | + ) |
|
145 | 145 | ) { |
146 | 146 | throw new DBCoreException( |
147 | 147 | "Invalid query parameters types string ('" . $value . |