Skip to content

Commit b144d21

Browse files
committed
FIX - Only variables should be passed by reference in usersettings.class.php on line 34
1 parent d687cab commit b144d21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/classes/usersettings.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ private function _storeValue($name, $value){
3131
if (empty(self::$__SetSTMT)){
3232
self::$__SetSTMT = $this->mysqli->prepare('REPLACE INTO '.$this->table.' (`account_id`, `name`, `value`) VALUES (?, ?, ?)');
3333
}
34-
if (!(self::$__SetSTMT && self::$__SetSTMT->bind_param('iss', $this->account_id, $name, serialize($value)) && self::$__SetSTMT->execute())) {
34+
$val = serialize($value);
35+
if (!(self::$__SetSTMT && self::$__SetSTMT->bind_param('iss', $this->account_id, $name, $val) && self::$__SetSTMT->execute())) {
3536
$this->setErrorMessage($this->getErrorMsg('E0084', $this->table));
3637
return $this->sqlError();
3738
}

0 commit comments

Comments
 (0)