From cdbc5904fb846836c49ac16cd127489103fdfaa0 Mon Sep 17 00:00:00 2001 From: RainLoop Team Date: Sat, 19 Apr 2014 01:35:10 +0400 Subject: [PATCH] Fix directadmin-change-password plugin --- .../DirectAdminChangePasswordDriver.php | 3 ++- plugins/directadmin-change-password/VERSION | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/directadmin-change-password/DirectAdminChangePasswordDriver.php b/plugins/directadmin-change-password/DirectAdminChangePasswordDriver.php index a52e84685..b65bdb60f 100644 --- a/plugins/directadmin-change-password/DirectAdminChangePasswordDriver.php +++ b/plugins/directadmin-change-password/DirectAdminChangePasswordDriver.php @@ -124,7 +124,8 @@ class DirectAdminChangePasswordDriver implements \RainLoop\Providers\ChangePassw if (false !== $mResult && 200 === $iCode) { - $aRes = @\parse_str($mResult); + $aRes = null; + @\parse_str($mResult, $aRes); if (is_array($aRes) && (!isset($aRes['error']) || (int) $aRes['error'] !== 1)) { $bResult = true; diff --git a/plugins/directadmin-change-password/VERSION b/plugins/directadmin-change-password/VERSION index 9f8e9b69a..b123147e2 100644 --- a/plugins/directadmin-change-password/VERSION +++ b/plugins/directadmin-change-password/VERSION @@ -1 +1 @@ -1.0 \ No newline at end of file +1.1 \ No newline at end of file