Projects
Kolab:16:Testing
iRony
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 5
View file
iRony-0.4.8.tar.gz/lib/Kolab/CalDAV/CalendarBackend.php
Changed
@@ -347,7 +347,7 @@ if ($storage && ($event = $storage->get_object($uid))) { // deliver attachment content directly - if ($part && !empty($event'_attachments')) { + if (!empty($part) && !empty($event'_attachments')) { foreach ($event'_attachments' as $attachment) { if ($attachment'id' == $part) { header('Content-Type: ' . $attachment'mimetype'); @@ -1156,10 +1156,11 @@ if (is_array($event'attendees')) { foreach ($event'attendees' as $attendee) { if (in_array($attendee'email', $user_emails)) { - if ($attendee'status' == 'DECLINED') { + $status = !empty($attendee'status') ? $attendee'status' : null; + if ($status == 'DECLINED') { return false; } - else if ($inbox && $attendee'status' == 'NEEDS-ACTION') { + else if ($inbox && $status == 'NEEDS-ACTION') { return true; } }
View file
iRony-0.4.8.tar.gz/lib/Kolab/CardDAV/ContactsBackend.php
Changed
@@ -134,17 +134,16 @@ public function get_storage_folder($id) { // resolve alias name - if ($this->aliases$id) { + if (!empty($this->aliases$id)) { $id = $this->aliases$id; } - if ($this->folders$id) { + if (!empty($this->folders$id)) { DAVBackend::check_storage_folder($this->folders$id); return $this->folders$id; } - else { - return DAVBackend::get_storage_folder($id, 'contact'); - } + + return DAVBackend::get_storage_folder($id, 'contact'); } /** @@ -210,7 +209,7 @@ } // resolve aliases (addressbook by folder name) - if ($this->aliases$addressBookUri) { + if (!empty($this->aliases$addressBookUri)) { $id = $this->aliases$addressBookUri; }
View file
iRony-0.4.8.tar.gz/lib/Kolab/DAV/Node.php
Changed
@@ -91,7 +91,7 @@ */ public function getLastModified() { - return $this->data'modified' ? $this->data'modified' : null; + return !empty($this->data'modified') ? $this->data'modified' : null; } /**
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.