// find the following: if ($photoplog_file_catid < 0) { $photoplog_file_catid = 0; } // replace with the following: if ($photoplog_file_catid < 0) { photoplog_output_error($vbphrase['photoplog_no']." ".$vbphrase['photoplog_category']); }