Rewrites/fixes for handling config entries in SQLs
[mailer.git] / inc / classes / rdf.class.php
index d71ca447ddf44edfcb840da6425970e7136f5ff4..9c9a0a2ff0d5ee108ad9784a3158de2ef9999a5d 100644 (file)
@@ -414,6 +414,8 @@ class fase4_rdf {
         */
        function finish($return = false)
        {
+               $this->out = str_replace('$', '$', $this->out);
+
                if (!$return) {
                        echo $this->out;
                } else {
@@ -1023,7 +1025,7 @@ class fase4_rdf {
 
                $_cache_f = $this->_cache_dir.$this->_cached_file;
 
-               if ( (!file_exists($_cache_f)) || (filemtime($_cache_f) < $this->_refresh) || (filesize($_cache_f) == '0')) {
+               if ( (!file_exists($_cache_f)) || (filemtime($_cache_f) < $this->_refresh) || (filesize($_cache_f) == 0)) {
                        // We have to parse the remote file
                        $this->_use_cached_file = false;
                        // --> we want to provide proper Information for Use in
@@ -1383,7 +1385,7 @@ class fase4_rdf {
                                        }
                                        $i++;
                                }
-                               if ((count($dummy) > 0) && (count($reply) == '0') && (!$isContent)) {
+                               if ((count($dummy) > 0) && (count($reply) == 0) && (!$isContent)) {
                                        // Transfer content from dummy
                                        $reply = $content;
                                }