diff options
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/adm/style/editor.js | 2 | ||||
| -rw-r--r-- | phpBB/includes/db/db_tools.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/functions_profile_fields.php | 2 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/editor.js | 2 | ||||
| -rw-r--r-- | phpBB/styles/subsilver2/template/editor.js | 2 | 
5 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/adm/style/editor.js b/phpBB/adm/style/editor.js index 217aa699e2..cad01aa9f2 100644 --- a/phpBB/adm/style/editor.js +++ b/phpBB/adm/style/editor.js @@ -292,7 +292,7 @@ function mozWrap(txtarea, open, close)  */  function storeCaret(textEl)  { -	if (textEl.createTextRange) +	if (textEl.createTextRange && document.selection)  	{  		textEl.caretPos = document.selection.createRange().duplicate();  	} diff --git a/phpBB/includes/db/db_tools.php b/phpBB/includes/db/db_tools.php index f63ff18cbe..e394b1ffa0 100644 --- a/phpBB/includes/db/db_tools.php +++ b/phpBB/includes/db/db_tools.php @@ -477,7 +477,7 @@ class phpbb_db_tools  			// here lies an array, filled with information compiled on the column's data  			$prepared_column = $this->sql_prepare_column_data($table_name, $column_name, $column_data); -			if (isset($prepared_column['auto_increment']) && strlen($column_name) > 26) // "${column_name}_gen" +			if (isset($prepared_column['auto_increment']) && $prepared_column['auto_increment'] && strlen($column_name) > 26) // "${column_name}_gen"  			{  				trigger_error("Index name '${column_name}_gen' on table '$table_name' is too long. The maximum auto increment column length is 26 characters.", E_USER_ERROR);  			} diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php index 8573533c2c..a2c0656ca4 100644 --- a/phpBB/includes/functions_profile_fields.php +++ b/phpBB/includes/functions_profile_fields.php @@ -532,7 +532,7 @@ class custom_profile  		switch ($this->profile_types[$field_type])  		{  			case 'int': -				if ($value === '' && !$ident_ary['data']['field_show_novalue']) +				if (($value === '' || $value === null) && !$ident_ary['data']['field_show_novalue'])  				{  					return NULL;  				} diff --git a/phpBB/styles/prosilver/template/editor.js b/phpBB/styles/prosilver/template/editor.js index c16b0ef703..42be70be92 100644 --- a/phpBB/styles/prosilver/template/editor.js +++ b/phpBB/styles/prosilver/template/editor.js @@ -347,7 +347,7 @@ function mozWrap(txtarea, open, close)  */  function storeCaret(textEl)  { -	if (textEl.createTextRange) +	if (textEl.createTextRange && document.selection)  	{  		textEl.caretPos = document.selection.createRange().duplicate();  	} diff --git a/phpBB/styles/subsilver2/template/editor.js b/phpBB/styles/subsilver2/template/editor.js index 151cf53ff1..103a271a71 100644 --- a/phpBB/styles/subsilver2/template/editor.js +++ b/phpBB/styles/subsilver2/template/editor.js @@ -351,7 +351,7 @@ function mozWrap(txtarea, open, close)  */  function storeCaret(textEl)  { -	if (textEl.createTextRange) +	if (textEl.createTextRange && document.selection)  	{  		textEl.caretPos = document.selection.createRange().duplicate();  	}  | 
