@@ -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 . |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | public function selectDBObject($debug = false) |
113 | 113 | { |
114 | 114 | $query = 'SELECT * FROM '.$this->dbObject->getTableName(). |
115 | - ($this->conditions != '' ? ' WHERE '.$this->conditions : '').' LIMIT 1'; |
|
115 | + ($this->conditions != '' ? ' WHERE '.$this->conditions : '').' LIMIT 1'; |
|
116 | 116 | |
117 | 117 | if (!$debug) { |
118 | 118 | $stmt = DBCore::doSelectQuery($query); |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | return $this->selectDBObject(); |
412 | 412 | } |
413 | 413 | |
414 | - /* |
|
414 | + /* |
|
415 | 415 | * Try to call parent method __call() with same params by default |
416 | 416 | */ |
417 | 417 | $method = substr($methodName, 0, 3); |
@@ -639,7 +639,7 @@ |
||
639 | 639 | { |
640 | 640 | if (!empty($dbObject) && is_object($dbObject)) { |
641 | 641 | $query = 'DELETE FROM '.$dbObject->getTableName(). |
642 | - ' WHERE '.$dbObject->getIdFieldName().' = ? LIMIT 1'; |
|
642 | + ' WHERE '.$dbObject->getIdFieldName().' = ? LIMIT 1'; |
|
643 | 643 | if (Tools::isInteger($dbObject->getId())) { |
644 | 644 | $typesString = 'i'; |
645 | 645 | } else { |