1
0

* Patch PEAR.php for better detection, if already included.

Thanks to Assen Tchorbadjiev.
This commit is contained in:
Garvin Hicking
2007-10-18 17:43:39 +00:00
parent 2be8f6d227
commit 523e403093
2 changed files with 6 additions and 2 deletions

View File

@ -22,7 +22,7 @@
//
// Serendipity-Patch
if (class_exists('PEAR')) {
if (defined('PEAR_ERROR_RETURN')) {
return false;
}
// Serendipity-Patch end
@ -738,7 +738,7 @@ class PEAR
}
// {{{ _PEAR_call_destructors()
if (!function_exists('_PEAR_call_destructors')) {
function _PEAR_call_destructors()
{
global $_PEAR_destructor_object_list;
@ -773,6 +773,7 @@ function _PEAR_call_destructors()
}
}
}
}
// }}}