Relationship Graph View Issue Dependency Graph
related to child of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0015496phpList 3 plugins[All Projects] Generalpublic06-02-19 11:35
Reporteradrian15 
PrioritynormalSeveritytrivialReproducibilityalways
Status newResolutionopen 
Summary0015496: Rssmanager processSuccesFailure incorrect rssitems array check
DescriptionRssmanager processSuccesFailure function does an incorrect rssitems array check. The fact of the rssitems being empty or not was checked with the is_array function while when rssitems is empty an empty array is returned.

In order to fix the problem I checked the actual number of items in the array with the sizeof function.
Additional InformationBased on svn revision 1703.
TagsNo tags attached.

Activities

27-05-10 18:49

 

G08_rssmanager_processSuccesFailure_rssitems_check_fix.patch (758 bytes)
diff -urN rssfixes_G07_rssmanager_sendemaillib_cache_fix/lists/admin/plugins/rssmanager.php rssfixes_G08_rssmanager_processSuccesFailure_rssitems_check_fix/lists/admin/plugins/rssmanager.php
--- rssfixes_G07_rssmanager_sendemaillib_cache_fix/lists/admin/plugins/rssmanager.php	2010-05-17 07:58:56.000000000 +0200
+++ rssfixes_G08_rssmanager_processSuccesFailure_rssitems_check_fix/lists/admin/plugins/rssmanager.php	2010-05-17 09:06:00.000000000 +0200
@@ -309,7 +309,7 @@
     if (!success)
       return true;
     $rssitems= rssmanager :: rssUserHasContent($userdata['id'], $messageid, $userdata['rssfrequency']);
-    if (!is_array($rssitems))
+    if (!sizeof($rssitems))
       return true;
     global $tables;
     foreach ($rssitems as $rssitemid) {

Issue History

Date Modified Username Field Change
27-05-10 18:49 adrian15 New Issue
27-05-10 18:49 adrian15 File Added: G08_rssmanager_processSuccesFailure_rssitems_check_fix.patch
27-05-10 19:06 h2b2 Relationship added child of 0015498
10-05-11 21:57 michiel Project phpList 3 application => rssmanager
06-02-19 11:35 erion Project rssmanager => phpList 3 plugins
06-02-19 11:35 erion Category Plugin API => General