diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-02-16 18:15:20 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-02-16 18:15:20 +0000 |
commit | c91a070738a9e46008209c4afe596ff56cfaa777 (patch) | |
tree | e1e996423b9d73a9e09e0c024bf464f349c83876 /h-source/Application/Models | |
parent | 4a27b517fc52dde60e5c1837860e4785317490a6 (diff) |
improved wiki
Diffstat (limited to 'h-source/Application/Models')
-rw-r--r-- | h-source/Application/Models/WikiModel.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/h-source/Application/Models/WikiModel.php b/h-source/Application/Models/WikiModel.php index 6cdc632..2ee7505 100644 --- a/h-source/Application/Models/WikiModel.php +++ b/h-source/Application/Models/WikiModel.php @@ -267,9 +267,9 @@ class WikiModel extends Model_Map { $res = $this->select('wiki.deleted')->where(array('id_wiki'=>$clean['id']))->send(); if ( count($res) > 0 ) { - return $res[0]['wiki']['deleted']; + return strcmp($res[0]['wiki']['deleted'],'no') === 0 ? false : true; } - return 'no'; + return false; } public function isBlocked($id) |