git-svn-id: file:///svn/phpbb/trunk@6387 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-09-23 10:08:05 +00:00
parent 2069aa0f83
commit 02c875ebb4
2 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@ function getarraysize(thearray)
{
for (i = 0; i < thearray.length; i++)
{
if (thearray[i] == 'undefined' || thearray[i] == '' || thearray[i] == null)
if (typeof thearray[i] == 'undefined' || thearray[i] == '' || thearray[i] == null)
{
return i;
}
@ -208,7 +208,7 @@ function addquote(post_id, username)
theSelection = document.selection.createRange().text;
}
if (theSelection == '')
if (theSelection == '' || typeof theSelection == 'undefined' || theSelection == null)
{
if (document.all)
{

View file

@ -33,7 +33,7 @@ function getarraysize(thearray)
{
for (i = 0; i < thearray.length; i++)
{
if (thearray[i] == 'undefined' || thearray[i] == '' || thearray[i] == null)
if (typeof thearray[i] == 'undefined' || thearray[i] == '' || thearray[i] == null)
{
return i;
}
@ -208,7 +208,7 @@ function addquote(post_id, username)
theSelection = document.selection.createRange().text;
}
if (theSelection == '')
if (theSelection == '' || typeof theSelection == 'undefined' || theSelection == null)
{
if (divarea.innerHTML)
{