note 81710 deleted from function.isset by googleguy

From: Date: Sat, 19 Jan 2013 03:46:26 +0000
Subject: note 81710 deleted from function.isset by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193244@lists.php.net to get a copy of this message
Note Submitter: John A. Bilicki III ---- I was attempting to use isset to detect if a class existed or not and kept having an error... Call to a member function get() on a non-object... For example I have some pages where I want to disable my own error reporting for non-existent HTTP queries. The HTTP query error handling file was merely included in my templates though now I can declare a class that uses that template system, declare an error class, and have the template system not serve the error handling when I will be using a large array of queries that I will not be tracking... <?php if (!class_exists('error')) {include("includes.php");} ?>

« previous php.notes (#193244) next »