Skip to content
Browse files

Even use empty error page templates.

Fixes issue 186. Thanks, Gocom.

git-svn-id: http://textpattern.googlecode.com/svn/development/4.x@3780 2fea6a4d-a838-0410-917b-93a53c48e9d2
  • Loading branch information...
1 parent 93ac58c commit 5e3b1775bf393dc2143a83ff11789690d5861fe3 @rwetzlmayr rwetzlmayr committed May 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 textpattern/lib/txplib_misc.php
View
4 textpattern/lib/txplib_misc.php
@@ -2125,11 +2125,11 @@ function txp_die($msg, $status='503', $url='')
if (@$GLOBALS['connected'] && @txpinterface == 'public') {
$out = safe_field('user_html','txp_page',"name='error_".doSlash($code)."'");
- if (empty($out))
+ if ($out === false)
$out = safe_field('user_html','txp_page',"name='error_default'");
}
- if (empty($out))
+ if (!isset($out))
$out = <<<eod
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

0 comments on commit 5e3b177

Please sign in to comment.
Something went wrong with that request. Please try again.