heavy code cleanup in the webui

This commit is contained in:
SJ
2013-02-11 20:24:19 +01:00
parent 5286bc7d1c
commit 5535a64de4
76 changed files with 1914 additions and 3744 deletions

View File

@ -483,7 +483,7 @@ class ModelSearchMessage extends Model {
$query = $this->db->query("SELECT `tag` FROM " . TABLE_TAG . " WHERE uid=? AND id=?", array($uid, $id));
if(isset($query->row['tag'])) { return $query->row['tag']; }
if(isset($query->row['tag'])) { return strip_tags($query->row['tag']); }
return '';
}
@ -523,7 +523,7 @@ class ModelSearchMessage extends Model {
$query = $this->db->query("SELECT `note` FROM " . TABLE_NOTE . " WHERE uid=? AND id=?", array($uid, $id));
if(isset($query->row['note'])) { return $query->row['note']; }
if(isset($query->row['note'])) { return strip_tags(urldecode($query->row['note'])); }
return '';
}