Improve project api procedures

This commit is contained in:
Frédéric Guillot
2014-09-09 15:15:04 +02:00
parent 685d1cc44c
commit ef95c7c284
8 changed files with 438 additions and 20 deletions

View File

@@ -70,11 +70,7 @@ class Table
$result = $this->db->execute($sql, $values);
if ($result !== false/* && $result->rowCount() > 0*/) {
return true;
}
return false;
return $result !== false && $result->rowCount() > 0;
}
@@ -106,7 +102,9 @@ class Table
$this->conditions()
);
return false !== $this->db->execute($sql, $this->values);
$result = $this->db->execute($sql, $this->values);
return $result !== false && $result->rowCount() > 0;
}