@@ -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 . |
@@ -101,8 +101,8 @@ discard block |
||
101 | 101 | */ |
102 | 102 | public function selectDBObject($debug = false) { |
103 | 103 | $query = "SELECT * FROM " . $this->dbObject->getTableName() |
104 | - . ($this->conditions != "" ? " WHERE " . $this->conditions : "") |
|
105 | - . " LIMIT 1"; |
|
104 | + . ($this->conditions != "" ? " WHERE " . $this->conditions : "") |
|
105 | + . " LIMIT 1"; |
|
106 | 106 | |
107 | 107 | if (!$debug) { |
108 | 108 | $stmt = DBCore::doSelectQuery($query); |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | */ |
184 | 184 | public function selectDBObjects($debug = false) { |
185 | 185 | $query = "SELECT" . ($this->unique ? " DISTINCT" : "") |
186 | - . " * FROM " . $this->dbObject->getTableName(); |
|
186 | + . " * FROM " . $this->dbObject->getTableName(); |
|
187 | 187 | |
188 | 188 | if ($this->conditions != "") { |
189 | 189 | $query .= " WHERE " . $this->conditions; |