forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Andi on October 25, 2004, 11:45:37 pm

Title: Notice line 2108: Undefined offset: 1 (solution)
Post by: Andi on October 25, 2004, 11:45:37 pm
Hi :)

a small "notice error" in file functions.inc.php,v 1.129 2004/10/18 08:27:36

Notice line 2108: Undefined offset: 1

Solution:

change from:
$return.= $val[1];

to:
if (isset($val[1])) {$return.= $val[1];}
Title: Re: Notice line 2108: Undefined offset: 1 (solution)
Post by: Andi on October 26, 2004, 12:04:07 am
upload.php,v 1.58 2004/10/24 22:28:43

Quote
Notice line 1714: Use of undefined constant stream_get_meta_data - assumed 'stream_get_meta_data'

Solution:

quote the string "stream_get_meta_data"
function_exists('stream_get_meta_data')

same error in line 1369
Title: Re: Notice line 2108: Undefined offset: 1 (solution)
Post by: Andi on October 26, 2004, 12:27:13 am
there are more small notices in upload.php from Line 188 to line 230 like this:
Quote
Notice line 225: Use of undefined constant cat - assumed 'cat'

Solution:

the strings cat, title, aid, etc. must be quoted $val['aid'] instead $val[aid]

Title: Re: Notice line 2108: Undefined offset: 1 (solution)
Post by: Joachim Müller on October 26, 2004, 06:52:57 am
fixed in devel cvs

Joachim