diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-07-26 07:43:18 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-07-26 07:43:18 +0000 |
commit | 392354df0a4f2c21aabad2f1b527448251a60f99 (patch) | |
tree | ab34820cef4990e4139326ccd2e507c5731d216c /lib/class/error.class.php | |
parent | 975af37b254ebc74533f1562005dccf75ef0f021 (diff) | |
download | ampache-392354df0a4f2c21aabad2f1b527448251a60f99.tar.gz ampache-392354df0a4f2c21aabad2f1b527448251a60f99.tar.bz2 ampache-392354df0a4f2c21aabad2f1b527448251a60f99.zip |
switched to sha() password encryption not using sha2 because of limitations of amarok, also added some caching and fixed some misc bugs
Diffstat (limited to 'lib/class/error.class.php')
-rw-r--r-- | lib/class/error.class.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/class/error.class.php b/lib/class/error.class.php index 13f96882..2c4679ec 100644 --- a/lib/class/error.class.php +++ b/lib/class/error.class.php @@ -27,8 +27,8 @@ */ class Error { - public static $state = false; // set to one when an error occurs - public static $errors = array(); // Errors array key'd array with errors that have occured + private static $state = false; // set to one when an error occurs + private static $errors = array(); // Errors array key'd array with errors that have occured /** * __constructor @@ -81,6 +81,18 @@ class Error { } // add + /** + * occurred + * This returns true / false if an error has occured anywhere + */ + public static function occurred() { + + if (self::$state == '1') { return true; } + + return false; + + } // occurred + /** * get * This returns an error by name |