Other fix is to edit classes.inc.php and goto line 2890 and add this code:
Code: Select all
else {
/**
* Declare the variables otherwise an error is displayed
*/
$userpath_web = "";
$title = "";
$Scan1Path = "";
$cert_scan_front = "";
$Scan2Path = "";
$cert_scan_back = "";
}
Code: Select all
if (($divecert[$i]['Scan1Path'] != "") || ($divecert[$i]['Scan2Path'] != "")) {
$title = $divecert[$i]['Org'] . " " .$divecert[$i]['Brevet'];
$userpath_web = $_config['userpath_web'] ;
$Scan1Path = array();
$Scan2Path = array();
$cert_scan_front = "";
$cert_scan_back ="";
if (!empty($divecert[$i]['Scan1Path'])) {
$Scan1Path = $divecert[$i]['Scan1Path'];
$cert_scan_front = $_lang['cert_scan_front'];
}
if (!empty($divecert[$i]['Scan2Path'])) {
$Scan2Path = $divecert[$i]['Scan2Path'] ;
$cert_scan_back = $_lang['cert_scan_back'];
}
} else {
/**
* Declare the variables otherwise an error is displayed
*/
$userpath_web = "";
$title = "";
$Scan1Path = "";
$cert_scan_front = "";
$Scan2Path = "";
$cert_scan_back = "";
}