| @@ -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; | 
| @@ -621,7 +621,7 @@ | ||
| 621 | 621 |      public static function deleteDBObject($dbObject) { | 
| 622 | 622 |          if (!empty($dbObject) && is_object($dbObject)) { | 
| 623 | 623 | $query = "DELETE FROM " . $dbObject->getTableName() . | 
| 624 | - " WHERE " . $dbObject->getIdFieldName() . " = ? LIMIT 1"; | |
| 624 | + " WHERE " . $dbObject->getIdFieldName() . " = ? LIMIT 1"; | |
| 625 | 625 | |
| 626 | 626 | $typesString = "s"; | 
| 627 | 627 |              if (Tools::isInteger($dbObject->getId())) { |