phpstorm tidying

This commit is contained in:
Shish
2015-09-12 11:43:28 +01:00
parent 6c304420a6
commit 35a4f385b3
66 changed files with 82 additions and 98 deletions

View File

@@ -220,7 +220,6 @@ class Notes extends Extension {
$event->add_querylet(new Querylet("images.id IN (SELECT id FROM images WHERE notes $cmp $notes)"));
}
else if(preg_match("/^notes_by[=|:](.*)$/i", $event->term, $matches)) {
global $database;
$user = User::by_name($matches[1]);
if(!is_null($user)) {
$user_id = $user->id;
@@ -323,7 +322,7 @@ class Notes extends Extension {
$noteY1 = int_escape($_POST["note_y1"]);
$noteHeight = int_escape($_POST["note_height"]);
$noteWidth = int_escape($_POST["note_width"]);
$noteText = mysql_real_escape_string(html_escape($_POST["note_text"]));
$noteText = sql_escape(html_escape($_POST["note_text"]));
// validate parameters
if (is_null($imageID) || !is_numeric($imageID) ||