Fix. Poll several mail at once.

Problem causes by fax_send.php which change current dir and second call can not finding libraries.
This commit is contained in:
Alexey Melnichuk 2015-11-20 15:22:09 +03:00
parent 4219034bf5
commit 506a829202
1 changed files with 4 additions and 0 deletions

View File

@ -210,8 +210,12 @@ if (sizeof($result) != 0) {
} }
//send fax //send fax
$cwd = getcwd();
$included = true; $included = true;
require("fax_send.php"); require("fax_send.php");
if($cwd){
chdir($cwd);
}
//reset variables //reset variables
unset($fax_numbers); unset($fax_numbers);