1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

content: added table prefix in db_select_gen

This commit is contained in:
lia
2007-01-17 14:05:41 +00:00
parent 0465efe1d1
commit 6bda84de8a
2 changed files with 11 additions and 11 deletions

View File

@@ -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();