mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
fix exception logging; fix filter_var usage
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1646 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
1 parent
ff1f9d2142
commit
c6a25c828d
1 file changed
+3
-3
@@ -51,7 +51,7 @@ function get_xmlrpc() {
|
||||
}
|
||||
catch(Exception $e) {
|
||||
//var_dump($client->getHttpClient()->getLastResponse()->getBody());
|
||||
error_log("Failed to login to xmlrpc instance - " . $e->getMessage);
|
||||
error_log("Failed to login to xmlrpc instance - " . $e->getMessage());
|
||||
die('Failed to login to xmlrpc instance');
|
||||
}
|
||||
if($success) {
|
||||
@@ -91,8 +91,8 @@ $optmode = 'display';
|
||||
// Action: Checks if email is valid and returns TRUE if this is the case.
|
||||
// Call: check_email (string email)
|
||||
//
|
||||
function check_email ($email) {
|
||||
$return = filter_var('validate_email', $email);
|
||||
function check_email($email) {
|
||||
$return = filter_var($email, FILTER_VALIDATE_EMAIL);
|
||||
if($return === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user