From b144d21cb385fc621c402e509c20514ad4878246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Blon=C4=8F=C3=A1k?= Date: Wed, 6 Sep 2017 21:03:37 +0200 Subject: [PATCH] FIX - Only variables should be passed by reference in usersettings.class.php on line 34 --- include/classes/usersettings.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/classes/usersettings.class.php b/include/classes/usersettings.class.php index f65d2355..06967b35 100644 --- a/include/classes/usersettings.class.php +++ b/include/classes/usersettings.class.php @@ -31,7 +31,8 @@ if (empty(self::$__SetSTMT)){ self::$__SetSTMT = $this->mysqli->prepare('REPLACE INTO '.$this->table.' (`account_id`, `name`, `value`) VALUES (?, ?, ?)'); } - if (!(self::$__SetSTMT && self::$__SetSTMT->bind_param('iss', $this->account_id, $name, serialize($value)) && self::$__SetSTMT->execute())) { + $val = serialize($value); + if (!(self::$__SetSTMT && self::$__SetSTMT->bind_param('iss', $this->account_id, $name, $val) && self::$__SetSTMT->execute())) { $this->setErrorMessage($this->getErrorMsg('E0084', $this->table)); return $this->sqlError(); }