cvs: phpweb / results.php

From: Date: Sat, 21 Jun 2008 12:21:41 +0000
Subject: cvs: phpweb / results.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1983@lists.php.net to get a copy of this message
bjori Sat Jun 21 12:21:41 2008 UTC Modified files: /phpweb results.php Log: Add a debug errormessage as a html comment http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.44&r2=1.45&diff_format=u Index: phpweb/results.php diff -u phpweb/results.php:1.44 phpweb/results.php:1.45 --- phpweb/results.php:1.44 Mon Apr 21 11:00:33 2008 +++ phpweb/results.php Sat Jun 21 12:21:41 2008 @@ -1,5 +1,5 @@ <?php -// $Id: results.php,v 1.44 2008/04/21 11:00:33 bjori Exp $ +// $Id: results.php,v 1.45 2008/06/21 12:21:41 bjori Exp $ $_SERVER['BASE_PAGE'] = 'results.php'; include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; #include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc'; @@ -47,7 +47,8 @@ $data = fetch_contents($url); if (is_array($data)) { - exit_with_pretty_error("Search error", "Internal error", "This mirror does not support searches, please report this error to <a href='/contact'>our webmasters</a>"); + $comment = '<!-- ' .$data["ERROR"]. '-->'; + exit_with_pretty_error("Search error", "Internal error", "This mirror does not support searches, please report this error to <a href='/contact'>our webmasters</a>" . $comment); } $res = unserialize($data);

« previous php.webmaster (#1983) next »