X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Frdf.class.php;h=8233aba8cc9b01a2402b36c4eb6b4fa321af1e7b;hb=09f5758c42a33a56bdd461c946ffe759a59c54aa;hp=7ab88f773e80ae0858c33106e54439313899b38f;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git diff --git a/inc/classes/rdf.class.php b/inc/classes/rdf.class.php index 7ab88f773e..8233aba8cc 100644 --- a/inc/classes/rdf.class.php +++ b/inc/classes/rdf.class.php @@ -53,7 +53,7 @@ class fase4_rdf { * @access private * @var integer */ - var $_word_wrap = 0; + var $_word_wrap = '0'; /** * Wether to recode \n ->
or not in description @@ -246,7 +246,7 @@ class fase4_rdf { * @access private * @var int */ - var $_item_count = 0; + var $_item_count = '0'; /** * No of max s @@ -399,7 +399,7 @@ class fase4_rdf { $this->out .= $this->cache(); $this->out .= ""; $this->_output = ''; - $this->_item_count = 0; + $this->_item_count = '0'; return true; } @@ -419,7 +419,6 @@ class fase4_rdf { } else { return $this->out; } - flush(); $this->_garbage_collection(); } @@ -621,13 +620,13 @@ class fase4_rdf { } if( !isset( $this->_depth[$this->get_parser_id($parser)] ) ) { - $this->_depth[$this->get_parser_id($parser)] = 0; + $this->_depth[$this->get_parser_id($parser)] = '0'; } $this->_depth[$this->get_parser_id($parser)]++; array_push($this->_tags, $name); if( !isset( $this->_cdepth[$this->get_parser_id($parser)] ) ) { - $this->_cdepth[$this->get_parser_id($parser)] = 0; + $this->_cdepth[$this->get_parser_id($parser)] = '0'; } $this->_cdepth[$this->get_parser_id($parser)]++; array_push($this->_ctags, $name); @@ -665,7 +664,7 @@ class fase4_rdf { } $this->_output .= "_citem['link']."\" "; if(isset($this->_link_target)) { $this->_output .= "target=\"".$this->_link_target."\" "; } - $this->_output .= ">".$this->_cut_string($this->_citem['link']).""; + $this->_output .= ">".$this->_cut_string($this->_citem['link']) . ''; $this->_output .= "\n"; $this->_output .= "
\n"; $this->_output .= ""; @@ -710,9 +709,9 @@ class fase4_rdf { // First remove all \n $this->_item['description'] = str_replace('\n', ' ', $this->_item['description']); // Wrap with
\n - $this->_item['description'] = wordwrap($this->_item['description'], $this->_word_wrap, "*
\n"); + $this->_item['description'] = wordwrap($this->_item['description'], $this->_word_wrap, "*
\n"); } - elseif (($this->_word_wrap == 0) && (!$this->_use_nl2br)) + elseif (($this->_word_wrap == '0') && (!$this->_use_nl2br)) { // Strip tags out instead when word-wrap is disabled $this->_item['description'] = strip_tags($this->_item['description'], ', '); @@ -806,7 +805,7 @@ class fase4_rdf { if(isset($this->_link_target)) { $this->_output .= "target=\"".$this->_link_target."\" "; } $this->_output .= "method=\"get\">\n"; $this->_output .= "
".$this->_item['title']."
"; - $this->_output .= strip_tags($this->_item['description'], '
, ')."

\n"; + $this->_output .= strip_tags($this->_item['description'], '
, ')."

\n"; $this->_output .= "_item['name']."\"> \n"; $this->_output .= ""; $this->_output .= "\n"; @@ -845,7 +844,7 @@ class fase4_rdf { * @access public * @author Stefan Saasen * @return array - * @see _array_item + * @see _array_item */ function get_array_item( ) { @@ -858,7 +857,7 @@ class fase4_rdf { * @access public * @author Stefan Saasen * @return array - * @see _array_textinput + * @see _array_textinput */ function get_array_textinput( ) { @@ -868,13 +867,13 @@ class fase4_rdf { /** * Getter for parser id from resource * - * @access private - * @author Roland Haeder - * @return int + * @access private + * @author Roland Haeder + * @return int */ function get_parser_id ($parser) { // Default is zero - $id = 0; + $id = '0'; // Is it a resource? if (is_resource($parser)) { @@ -892,7 +891,7 @@ class fase4_rdf { * @access public * @author Stefan Saasen * @return array - * @see _array_image + * @see _array_image */ function get_array_image( ) { @@ -1024,7 +1023,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 @@ -1078,7 +1077,7 @@ class fase4_rdf { if($arr[0]=='') { $path = '/'; } - for($i = 0;$i<$c;$i++) + for($i = '0';$i<$c;$i++) { if($arr[$i]!='') { $path .= $arr[$i].'/'; @@ -1297,7 +1296,7 @@ class fase4_rdf { } - for ( $i = 0; !feof ($fp) ; $i++) + for ( $i = '0'; !feof ($fp) ; $i++) { $usable_data[$i] = ""; $usable_data[$i] = fgets($fp,4096); @@ -1384,7 +1383,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; }