forked from Cavemanon/cavepaintings
phpstorm tidying
This commit is contained in:
@@ -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) ||
|
||||
|
Reference in New Issue
Block a user