glossary MDL-23391 glossary rss feed generation tweak
authorAndrew Davis <andrew@affinitysoftware.net>
Tue, 20 Jul 2010 04:02:31 +0000 (04:02 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Tue, 20 Jul 2010 04:02:31 +0000 (04:02 +0000)
mod/glossary/rsslib.php

index 48a44af..522b227 100644 (file)
@@ -11,6 +11,8 @@
             return null;
         }
 
             return null;
         }
 
+        $status = true;
+
         //check capabilities
         //glossary module doesn't require any capabilities to view glossary entries (aside from being logged in)
 
         //check capabilities
         //glossary module doesn't require any capabilities to view glossary entries (aside from being logged in)
 
             }
         }
 
             }
         }
 
+        if (!$status) {
+            $cachedfilepath = null;
+        }
+
         return $cachedfilepath;
     }
 
         return $cachedfilepath;
     }