Menu

#242 undefined variable $_is_array

phpCMS_1.2.2
open
nobody
Parser (93)
5
2014-06-30
2006-10-10
Anonymous
No

class.parser_phpcms.php

function compute\_phpcms\_commands \($lines\) \{
    global $DEFAULTS, $I18N;

    if \(is\_array \($lines\)\) \{
        $\_is\_array = true;
        $lines = join \("\r\r", $lines\);
    \}

    if \(strtoupper \($DEFAULTS->I18N\) == 'ON'\) \{
        $lines = $I18N->replaceLangTag \($lines\);
    \}
    $lines = preg\_replace

("'<phpcms:ignore>.*?</phpcms:ignore>'sim", '', $lines);
$lines = preg_replace ("'<(/?)phpcms:noindex>'si",
"<!-- $1PHPCMS_NOINDEX -->", $lines);
$lines = preg_replace ("'<(/?)phpcms:nofollow>'si",
"<!-- $1PHPCMS_NOFOLLOW -->", $lines);

    if \($\_is\_array\) \{
        $lines = explode \("\r\r", $lines\);
    \}

variable $_is_array is not defined and default set to
false.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.