Index: /freepbx/branches/2.5/amp_conf/bin/retrieve_conf =================================================================== --- /freepbx/branches/2.5/amp_conf/bin/retrieve_conf (revision 6764) +++ /freepbx/branches/2.5/amp_conf/bin/retrieve_conf (revision 6859) @@ -722,7 +722,11 @@ if(!$amp_conf['FOPDISABLE']) { $script = $amp_conf['AMPBIN'].'/retrieve_op_conf_from_mysql.pl '.$amportalconf.' '.rtrim($asterisk_conf['astetcdir'],DIRECTORY_SEPARATOR); - exec($script, $output, $ret); - if ($ret) { - fatal(sprintf(_("retrieve_op_conf_from_mysql.pl returned with an error code %s"),$ret)); + if (is_executable($script)) { + exec($script, $output, $ret); + if ($ret) { + error(sprintf(_("retrieve_op_conf_from_mysql.pl returned with an error code %s"),$ret)); + } + } else { + error(_("retrieve_op_conf_from_mysql.pl does not exist or is not executable")); } }