| @@ 718-723 (lines=6) @@ | ||
| 715 | return true; |
|
| 716 | } |
|
| 717 | ||
| 718 | if (! $this->validate()) |
|
| 719 | { |
|
| 720 | debug_add('This privilege failed to validate, rejecting to drop it, see the debug log for details.', MIDCOM_LOG_WARN); |
|
| 721 | debug_print_r('Privilege dump:', $this); |
|
| 722 | return false; |
|
| 723 | } |
|
| 724 | ||
| 725 | if (!$this->__privilege_object->guid) |
|
| 726 | { |
|
| @@ 79-84 (lines=6) @@ | ||
| 76 | */ |
|
| 77 | public function open($mode = 'default') |
|
| 78 | { |
|
| 79 | if (! $this->id) |
|
| 80 | { |
|
| 81 | debug_add('Cannot open a non-persistent attachment.', MIDCOM_LOG_WARN); |
|
| 82 | debug_print_r('Object state:', $this); |
|
| 83 | return false; |
|
| 84 | } |
|
| 85 | ||
| 86 | if ($this->_open_handle !== null) |
|
| 87 | { |
|
| @@ 316-321 (lines=6) @@ | ||
| 313 | */ |
|
| 314 | public function stat() |
|
| 315 | { |
|
| 316 | if (!$this->id) |
|
| 317 | { |
|
| 318 | debug_add('Cannot open a non-persistent attachment.', MIDCOM_LOG_WARN); |
|
| 319 | debug_print_r('Object state:', $this); |
|
| 320 | return false; |
|
| 321 | } |
|
| 322 | ||
| 323 | $blob = new midgard_blob($this->__object); |
|
| 324 | ||