From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KDnVX-0004rL-7i for garchives@archives.gentoo.org; Tue, 01 Jul 2008 21:35:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6B442E0374; Tue, 1 Jul 2008 21:35:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 46FADE0374 for ; Tue, 1 Jul 2008 21:35:26 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id E927B67082 for ; Tue, 1 Jul 2008 21:35:25 +0000 (UTC) Received: from tomk by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1KDnVR-0001Bu-Np for gentoo-commits@lists.gentoo.org; Tue, 01 Jul 2008 21:35:21 +0000 From: "Tom Knight (tomk)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, tomk@gentoo.org Subject: [gentoo-commits] gentoo-projects commit in forums/htdocs: search.php X-VCS-Repository: gentoo-projects X-VCS-Files: search.php X-VCS-Directories: forums/htdocs X-VCS-Committer: tomk X-VCS-Committer-Name: Tom Knight Content-Type: text/plain; charset=utf8 Message-Id: Sender: Tom Knight Date: Tue, 01 Jul 2008 21:35:21 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: dc524bea-ab31-4d06-b34f-24936dcb0de8 X-Archives-Hash: 70797d809e4f1debc9df1ad98cc67625 tomk 08/07/01 21:35:21 Modified: search.php Log: prevent errors Revision Changes Path 1.25 forums/htdocs/search.php file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs= /search.php?rev=3D1.25&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs= /search.php?rev=3D1.25&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs= /search.php?r1=3D1.24&r2=3D1.25 Index: search.php =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/search.php,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- search.php 1 Jul 2008 21:09:52 -0000 1.24 +++ search.php 1 Jul 2008 21:35:21 -0000 1.25 @@ -6,7 +6,7 @@ * copyright : (C) 2001 The phpBB Group * email : support@phpbb.com * - * $Id: search.php,v 1.24 2008/07/01 21:09:52 tomk Exp $ + * $Id: search.php,v 1.25 2008/07/01 21:35:21 tomk Exp $ * * ***********************************************************************= ****/ @@ -640,7 +640,7 @@ // 2008-07-01 tomk - use subquery to prevent hitting memory limit $sql =3D "DELETE FROM " . SEARCH_TABLE . "=20 WHERE session_id NOT IN (SELECT session_id FROM " . SESSIONS_TABLE . = ")"; - if ( !$result =3D $db->sql_query($sql) ) + if ( ! ($result =3D $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not delete old search id sessions',= '', __LINE__, __FILE__, $sql); } --=20 gentoo-commits@lists.gentoo.org mailing list