diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-03-08 10:54:28 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-03-08 10:54:28 +0100 |
commit | 0878c846bc2c1030ed01c8db34e20796c31ccd2d (patch) | |
tree | d044028b2d657b25dc222997b42f56ff864d92c8 /plugins/enigma/lib/enigma_error.php | |
parent | 9af8e22b8ea3bd4fe9e05860058d7fce29019455 (diff) |
Enigma: Larry support, finished PGP decryption, other fixes and improvements
Diffstat (limited to 'plugins/enigma/lib/enigma_error.php')
-rw-r--r-- | plugins/enigma/lib/enigma_error.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/enigma/lib/enigma_error.php b/plugins/enigma/lib/enigma_error.php index ab8d01557..7122e8e7b 100644 --- a/plugins/enigma/lib/enigma_error.php +++ b/plugins/enigma/lib/enigma_error.php @@ -37,11 +37,12 @@ class enigma_error const E_EXPIRED = 6; const E_UNVERIFIED = 7; + function __construct($code = null, $message = '', $data = array()) { - $this->code = $code; + $this->code = $code; $this->message = $message; - $this->data = $data; + $this->data = $data; } function getCode() @@ -56,9 +57,11 @@ class enigma_error function getData($name) { - if ($name) + if ($name) { return $this->data[$name]; - else + } + else { return $this->data; + } } } |