Menu

PMBP_email_store(), $bodies.=$val

2007-01-16
2013-05-30
  • Nobody/Anonymous

    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

     
    • Dirk

      Dirk - 2007-02-15

      Obsolete in pMBP v.2.0

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.