aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Models')
-rw-r--r--h-source/Application/Models/WikiModel.php4
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)