From: cajus Date: Thu, 19 Jul 2007 12:36:21 +0000 (+0000) Subject: This comparison is always the same. No change needed. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=20f2ae4a3b5ac4b8395fb42e43950432c6f1f32b;p=gosa.git This comparison is always the same. No change needed. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6921 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 08556847f..c74d1dfd8 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -1100,7 +1100,7 @@ class user extends plugin /* Indicate whether a password change is needed or not */ function password_change_needed() { - return (!preg_match("/".$this->pw_storage."/i", $this->last_pw_storage)); + return ($this->pw_storage != $this->last_pw_storage); }