Changeset 1162

Show
Ignore:
Timestamp:
02/21/10 17:46:31 (3 years ago)
Author:
GneX
Message:

EventListener error fixed

Location:
org.gnex.skypeStatusSidebar
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • org.gnex.skypeStatusSidebar/files/lib/system/event/listener/MessageSidebarSkypeStatusListener.class.php

    r1160 r1162  
    2323      } 
    2424       
    25       $userContacts = $sidebar->getUserContacts(); 
    26                         foreach ($userContacts as $userContact => $value) { 
    27                           if($value['value'] == $optionValue) { 
    28                             $arrayKey = $userContact; 
    29         } 
     25      if(isset($optionValue) && !empty($optionValue)) { 
     26        $userContacts = $sidebar->getUserContacts(); 
     27                          foreach ($userContacts as $userContact => $value) { 
     28                            if($value['value'] == $optionValue) { 
     29                              $arrayKey = $userContact; 
     30          } 
     31                        } 
     32                           
     33                          $userContacts[$arrayKey] = array('value' => $this->getLink($sidebar->getUser()->userID, $this->getImage($sidebar->getUser()->username, $skypeName))); 
     34                          $sidebar->userContacts = $userContacts; 
    3035                        } 
    31                          
    32                         $userContacts[$arrayKey] = array('value' => $this->getLink($sidebar->getUser()->userID, $this->getImage($sidebar->getUser()->username, $skypeName))); 
    33                         $sidebar->userContacts = $userContacts; 
    3436                } 
    3537        } 
  • org.gnex.skypeStatusSidebar/package.xml

    r1160 r1162  
    66                <packagedescription><![CDATA[Zeigt in der MessageSidebar an, welchen Status der Benutzer bei Skype hat.]]></packagedescription> 
    77                <isunique>1</isunique> 
    8                 <version>1.2.0</version> 
     8                <version>1.2.1</version> 
    99                <date>2010-02-20</date> 
    1010                <plugin>com.woltlab.wcf</plugin> 
     
    4242                <files>files.tar</files> 
    4343        </instructions> 
     44        <instructions type="update" fromversion="1.2.0"> 
     45                <files>files.tar</files> 
     46        </instructions> 
    4447</package>