[drupal-devel] Detecting table existence/absence in a
Drupally-correct way
Jim Riggs
drupal-lists at jimandlissa.com
Thu Apr 14 12:38:19 UTC 2005
On 13 Apr, 2005, at 22:28, Syscrusher wrote:
> The obvious thing to try was calling @db_query() to try to suppress
> the
> error message. That does what I need, but puts the database error
> into the output
> shown to the user. Since I know what is the specific situation, I
> want to
> suppress that output for this call only, without overriding the
> site-wide
> setting that causes errors to go only into the log. (Ideally, this
> particular
> error doesn't belong in the log, either, since I essentially am
> generating
> it on purpose).
The only way would probably be to use set_error_handler() to set a
new error handler (that just ignores the error) and then restore
Drupal's with restore_error_handler().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2385 bytes
Desc: not available
Url : http://drupal3.drupal.org/pipermail/development/attachments/20050414/95087dce/smime.bin
More information about the drupal-devel
mailing list