From 6bda84de8aecc9bf0ead1fdc664f535a79ed2c3f Mon Sep 17 00:00:00 2001 From: lia Date: Wed, 17 Jan 2007 14:05:41 +0000 Subject: [PATCH] content: added table prefix in db_select_gen --- e107_plugins/content/handlers/content_class.php | 8 ++++---- e107_plugins/content/search/search_parser.php | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/e107_plugins/content/handlers/content_class.php b/e107_plugins/content/handlers/content_class.php index 6e3d2063a..f955cfcfb 100644 --- a/e107_plugins/content/handlers/content_class.php +++ b/e107_plugins/content/handlers/content_class.php @@ -12,8 +12,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_class.php,v $ -| $Revision: 1.6 $ -| $Date: 2007-01-15 14:00:21 $ +| $Revision: 1.7 $ +| $Date: 2007-01-17 14:04:31 $ | $Author: lisa_ $ +---------------------------------------------------------------+ */ @@ -707,8 +707,8 @@ class content{ global $plugintable, $sql; $qry = " SELECT c.*, p.* - FROM pcontent as c - LEFT JOIN pcontent as p ON p.content_id = c.content_parent + FROM #pcontent as c + LEFT JOIN #pcontent as p ON p.content_id = c.content_parent WHERE c.content_id = '".intval($id)."' "; $sql -> db_Select_gen($qry); $row2 = $sql -> db_Fetch(); diff --git a/e107_plugins/content/search/search_parser.php b/e107_plugins/content/search/search_parser.php index a4ac6bf31..aaaa8aec1 100644 --- a/e107_plugins/content/search/search_parser.php +++ b/e107_plugins/content/search/search_parser.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/content/search/search_parser.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:35:08 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2007-01-17 14:05:19 $ +| $Author: lisa_ $ +----------------------------------------------------------------------------+ */ @@ -58,19 +58,19 @@ function search_content($row) { if($row['content_parent'] == '0'){ $qry = " SELECT c.content_heading - FROM pcontent as c + FROM #pcontent as c WHERE c.content_id = '".$row['content_id']."' "; }elseif(strpos($row['content_parent'], "0.") !== FALSE){ $tmp = explode(".", $row['content_parent']); $qry = " SELECT c.content_heading - FROM pcontent as c + FROM #pcontent as c WHERE c.content_id = '".intval($tmp[1])."' "; }else{ $qry = " SELECT c.*, p.* - FROM pcontent as c - LEFT JOIN pcontent as p ON p.content_id = c.content_parent + FROM #pcontent as c + LEFT JOIN #pcontent as p ON p.content_id = c.content_parent WHERE c.content_id = '".$row['content_id']."' "; }