diff options
Diffstat (limited to 'phpBB/phpbb')
| -rw-r--r-- | phpBB/phpbb/db/tools.php | 2 | ||||
| -rw-r--r-- | phpBB/phpbb/profilefields/type/type_base.php | 2 | ||||
| -rw-r--r-- | phpBB/phpbb/user.php | 2 | 
3 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php index 3567570137..0781d7425e 100644 --- a/phpBB/phpbb/db/tools.php +++ b/phpBB/phpbb/db/tools.php @@ -1512,7 +1512,7 @@ class tools  					$sql .= (strpos($column_data[1], '0x') === 0) ? "DEFAULT {$column_data[1]} " : "DEFAULT '{$column_data[1]}' ";  				} -				if (!is_null($column_data[1])) +				if (!is_null($column_data[1]) || (isset($column_data[2]) && $column_data[2] == 'auto_increment'))  				{  					$sql .= 'NOT NULL';  				} diff --git a/phpBB/phpbb/profilefields/type/type_base.php b/phpBB/phpbb/profilefields/type/type_base.php index c770a0d93c..52f5d15511 100644 --- a/phpBB/phpbb/profilefields/type/type_base.php +++ b/phpBB/phpbb/profilefields/type/type_base.php @@ -133,7 +133,7 @@ abstract class type_base implements type_interface  		{  			foreach ($field_data[$key] as $lang_id => $options)  			{ -				$field_data[$key][$lang_id] = explode("\n", $options); +				$field_data[$key][$lang_id] = is_array($options) ? $options : explode("\n", $options);  			}  			return $current_value; diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php index ea98034434..882e9cef26 100644 --- a/phpBB/phpbb/user.php +++ b/phpBB/phpbb/user.php @@ -717,7 +717,7 @@ class user extends \phpbb\session  			$utc = new \DateTimeZone('UTC');  		} -		$time = new \phpbb\datetime($this, "@$gmepoch", $utc); +		$time = new $this->datetime($this, "@$gmepoch", $utc);  		$time->setTimezone($this->timezone);  		return $time->format($format, $forcedate);  | 
