Adding Event produces warning

Every time i add an event (i think this not only relates to events) i get 4 times of the same warning in my logs. Is it safe to ignore this one?

 

array_diff(): Argument #1 is not an array in /var/www/htdocs/inc/classes/BxDolFormMedia.php on line 300, referer: http://www.mydolphinsite111.com/m/events/browse/my&bx_events_filter=add_event

 

if i understand the code right this part wants to process media files that are marked to be deleted. Can i change the line of code so it checks the variable before trying to make a diff? I guess array argument #1 ($aFiles2Delete) is just empty. Let me be clear, the code works i just want to get rid of these warnings is see all the time.


Line
299 >  // process all deleted media - delete actual file
300 >  $aDeletedMedia = array_diff ($aFiles2Delete, $aMediaIds);

 

Thanks in advance

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 27 Apr 2012

 You are correct, there should be a check to bypass that code snippet if the array is empty.

Every time i add an event (i think this not only relates to events) i get 4 times of the same warning in my logs. Is it safe to ignore this one?

 

array_diff(): Argument #1 is not an array in /var/www/htdocs/inc/classes/BxDolFormMedia.php on line 300, referer: http://www.mydolphinsite111.com/m/events/browse/my&bx_events_filter=add_event

 

if i understand the code right this part wants to process media files that are marked to be deleted. Can i change the line of code so it checks the variable before trying to make a diff? I guess array argument #1 ($aFiles2Delete) is just empty. Let me be clear, the code works i just want to get rid of these warnings is see all the time.


Line
299 >  // process all deleted media - delete actual file
300 >  $aDeletedMedia = array_diff ($aFiles2Delete, $aMediaIds);

 

Thanks in advance

 

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 28 Apr 2012

Thanks for confirming modzzz.

Anybody know whats a safe way to do it there? I know how to bypass it, but i worry i break some other code functionality i am not aware of yet. So i better ask the coders from boonex.

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 28 Apr 2012

 if(is_array($aFiles2Delete)){

     //replace this line with the code snippet that you want to bypass

}

Thanks for confirming modzzz.

Anybody know whats a safe way to do it there? I know how to bypass it, but i worry i break some other code functionality i am not aware of yet. So i better ask the coders from boonex.

 

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 28 Apr 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.