Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 11] Warning: array_push(): First argument should be an array in

kamikaze-qscm
Discussion topic

Back to topic list

[Issue 11] Warning: array_push(): First argument should be an array in

Author jduprey
Full name John Duprey
Date 2004-09-23 20:20:57 PDT
Message http://kamikaze-qscm​.tigris.org/issues/s​how_bug.cgi?id=11






------- Additional comments from jduprey at tigris dot org Thu Sep 23 20:20:57 -0700 2004 -------
err. defined => isset for variables - but its the same idea.

if( isset( $row["resource"] ) &&
    isset( $row["action"] ) )
{
    array_push(
    $this->parsedRes​ults[$curRep][$cur​Rev]["resources"],
    array( "path" => $row["resource"],
       "action" => $row["action"] ) );
}
else
{
    array_push(
        $this->parsedRes​ults[$curRep][$cur​Rev]["resources"],
        array( "path" => "**EMPTY**",
       "action" => "**NULL**" ) );
}

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: issues-unsubscribe@k​amikaze-qscm.tigris.​org
For additional commands, e-mail: issues-help@kamikaze​-qscm.tigris.org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[Issue 11] Warning: array_push(): First argument should be an array in jduprey John Duprey 2004-09-23 20:20:57 PDT
Messages per page: