|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-05 10:54 UTC] waldschrott@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 22:00:01 2025 UTC |
The code causing the error looks something like this.... Here is the value of $name: "some_data" if($what_the_fuck= ($name != NULL)) { echo "debug (passed): $what_the_fuck"; } else { echo "debug (failed): $what_the_fuck"; } And this is what is happening..... debug (failed): 1 ERROR: Template: trying to set NULL template variable name the "what_the_fuck" variable == 1 so why is if failing. "name" == "some_data". If ($name != NULL) == 1 then if should not fail. P.S. I added the "what_the_fuck" for clearity only. thanks, richie