1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class NoSuchUserException extends ServerException
- {
- public $data = array();
-
- public function __construct(array $data)
- {
-
- foreach(array('id', 'email', 'nickname') as $key) {
- if (isset($data[$key]) && !empty($data[$key])) {
- $this->data[$key] = $data[$key];
- }
- }
-
- parent::__construct(_('No such user found.'));
- }
- }
|