Notice line 2108: Undefined offset: 1 (solution) Notice line 2108: Undefined offset: 1 (solution)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Notice line 2108: Undefined offset: 1 (solution)

Started by Andi, October 25, 2004, 11:45:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andi

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];}
hope, I could help you... :)

Andi

upload.php,v 1.58 2004/10/24 22:28:43

QuoteNotice 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
hope, I could help you... :)

Andi

there are more small notices in upload.php from Line 188 to line 230 like this:
QuoteNotice line 225: Use of undefined constant cat - assumed 'cat'

Solution:

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

hope, I could help you... :)

Joachim Müller