Provide user feedback when php5-imap is missing.

This commit is contained in:
Daniel Aleksandersen 2012-04-08 21:32:42 +02:00 committed by Andrew McMillan
parent d2d12bbe04
commit ecbc9f6a4d

View File

@ -11,6 +11,11 @@
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2 or later
*/
// The PHP interpreter will die quietly unless satisfied. This provides user feedback instead.
if (!function_exists('imap_open')) {
die("drivers_imap_pam: php5-imap required.");
}
require_once("auth-functions.php");
class imapPamDrivers