summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-09-14 17:48:33 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-09-14 17:48:33 +0200
commitadc33811c3c9513ca56dfa5e57169a5a1df106db (patch)
treefc76930a2221a807cd8373f8f02ebab639d19f83 /app/models
parent31a6a13268023a2db5eba2445ee6c7db4a6d9623 (diff)
Fix issue #158 : ajout premier flux fonctionne
La catégorie par défaut est bien mise par défaut pour le premier flux
Diffstat (limited to 'app/models')
-rwxr-xr-xapp/models/Category.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/Category.php b/app/models/Category.php
index e733b15ba..a9f036a4e 100755
--- a/app/models/Category.php
+++ b/app/models/Category.php
@@ -175,7 +175,7 @@ class CategoryDAO extends Model_pdo {
public function checkDefault () {
$def_cat = $this->searchById ('000000');
- if (!$def_cat) {
+ if ($def_cat === false) {
$cat = new Category (Translate::t ('default_category'));
$cat->_id ('000000');