Skip to content
Snippets Groups Projects
Commit 80da8a34 authored by Jared Hancock's avatar Jared Hancock
Browse files

Don't assume include_dir is set

parent 99c4b101
No related branches found
No related tags found
No related merge requests found
...@@ -141,8 +141,8 @@ class Validator { ...@@ -141,8 +141,8 @@ class Validator {
/*** Functions below can be called directly without class instance. /*** Functions below can be called directly without class instance.
Validator::func(var..); (nolint) ***/ Validator::func(var..); (nolint) ***/
function is_email($email, $list=false) { function is_email($email, $list=false) {
require_once 'Mail/RFC822.php'; require_once PEAR_DIR . 'Mail/RFC822.php';
require_once 'PEAR.php'; require_once PEAR_DIR . 'PEAR.php';
if (!($mails = Mail_RFC822::parseAddressList($email)) || PEAR::isError($mails)) if (!($mails = Mail_RFC822::parseAddressList($email)) || PEAR::isError($mails))
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment