Notice: Undefined variable: bodies in /var/www/html/administration/phpMyBackupPro/functions.inc.php on line 807
Notice: Undefined offset: 0 in /var/www/html/administration/phpMyBackupPro/functions.inc.php on line 807
line 807 is:
foreach (file(PMBP_EXPORT_DIR.$attachments[$i]) as $val) $bodies[$i].=$val;
when I checked the code, I think adding this line just before is a safe correction of it:
if (!isset($bodies[$i])) {$bodies[$i] = null;}
I think it should be (without adding the line above)
foreach (file(PMBP_EXPORT_DIR.$attachments[$i]) as $val) $bodies[$i]=$val;
(= instead of .=)
I couldn't guess why .= was used. $bodies doen't exist in any other file...
I'd really like to know if attachments will work this way ???
By the way, THANKS A LOT for the great application !
bye,
mudar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I got this error:
Notice: Undefined variable: bodies in /var/www/html/administration/phpMyBackupPro/functions.inc.php on line 807
Notice: Undefined offset: 0 in /var/www/html/administration/phpMyBackupPro/functions.inc.php on line 807
line 807 is:
foreach (file(PMBP_EXPORT_DIR.$attachments[$i]) as $val) $bodies[$i].=$val;
when I checked the code, I think adding this line just before is a safe correction of it:
if (!isset($bodies[$i])) {$bodies[$i] = null;}
I think it should be (without adding the line above)
foreach (file(PMBP_EXPORT_DIR.$attachments[$i]) as $val) $bodies[$i]=$val;
(= instead of .=)
I couldn't guess why .= was used. $bodies doen't exist in any other file...
I'd really like to know if attachments will work this way ???
By the way, THANKS A LOT for the great application !
bye,
mudar
Obsolete in pMBP v.2.0