* @access private
* @var integer
*/
- var $_word_wrap = 0;
+ var $_word_wrap = '0';
/**
* Wether to recode \n -> <br /> or not in description
* @access private
* @var int
*/
- var $_item_count = 0;
+ var $_item_count = '0';
/**
* No of max <item>s
$this->out .= $this->cache();
$this->out .= "</table>";
$this->_output = '';
- $this->_item_count = 0;
+ $this->_item_count = '0';
return true;
}
}
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);
// Wrap with <br />\n
$this->_item['description'] = wordwrap($this->_item['description'], $this->_word_wrap, "*<br>\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'], '<a>, <img>');
* @access public
* @author Stefan Saasen <s@fase4.com>
* @return array
- * @see _array_item
+ * @see _array_item
*/
function get_array_item( )
{
* @access public
* @author Stefan Saasen <s@fase4.com>
* @return array
- * @see _array_textinput
+ * @see _array_textinput
*/
function get_array_textinput( )
{
/**
* Getter for parser id from resource
*
- * @access private
- * @author Roland Haeder <webmaster@mxchange.org>
- * @return int
+ * @access private
+ * @author Roland Haeder <webmaster@mxchange.org>
+ * @return int
*/
function get_parser_id ($parser) {
// Default is zero
- $id = 0;
+ $id = '0';
// Is it a resource?
if (is_resource($parser)) {
* @access public
* @author Stefan Saasen <s@fase4.com>
* @return array
- * @see _array_image
+ * @see _array_image
*/
function get_array_image( )
{
$_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
if($arr[0]=='') {
$path = '/';
}
- for($i = 0;$i<$c;$i++)
+ for($i = '0';$i<$c;$i++)
{
if($arr[$i]!='') {
$path .= $arr[$i].'/';
}
- for ( $i = 0; !feof ($fp) ; $i++)
+ for ( $i = '0'; !feof ($fp) ; $i++)
{
$usable_data[$i] = "";
$usable_data[$i] = fgets($fp,4096);
}
$i++;
}
- if ((count($dummy) > 0) && (count($reply) == 0) && (!$isContent)) {
+ if ((count($dummy) > 0) && (count($reply) == '0') && (!$isContent)) {
// Transfer content from dummy
$reply = $content;
}