Code Duplication    Length = 3-3 lines in 2 locations

include/classes/usersettings.class.php 2 locations

@@ 31-33 (lines=3) @@
28
		}
29
		
30
		private function _storeValue($name, $value){
31
			if (empty(self::$__SetSTMT)){
32
				self::$__SetSTMT = $this->mysqli->prepare('REPLACE INTO '.$this->table.' (`account_id`, `name`, `value`) VALUES (?, ?, ?)');
33
			}
34
			if (!(self::$__SetSTMT && self::$__SetSTMT->bind_param('iss', $this->account_id, $name, serialize($value)) && self::$__SetSTMT->execute())) {
35
				$this->setErrorMessage($this->getErrorMsg('E0084', $this->table));
36
				return $this->sqlError();
@@ 42-44 (lines=3) @@
39
		}
40
		
41
		private function _getValue($name, $default = null){
42
			if (empty(self::$__GetSTMT)){
43
				self::$__GetSTMT = $this->mysqli->prepare('SELECT `value` FROM '.$this->table.' WHERE `account_id` = ? AND `name` = ? LIMIT 1');
44
			}
45
			if (self::$__GetSTMT && self::$__GetSTMT->bind_param('is', $this->account_id, $name) && self::$__GetSTMT->execute() && $result = self::$__GetSTMT->get_result()) {
46
				if ($result->num_rows > 0) {
47
					return unserialize($result->fetch_object()->value);