Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikia ištaisyti klaidą

Parašė T-Boy· 2011 Vas. 12 11:02:30
#1

Notice: Undefined variable: lookup in /home/safasf/domains/saitas.lt/public_html/includes/user_fields/user_photo-albums_include.php on line 27

Jei galit, pašalinkit tą klaidą, padėjusiem duosiu +11 :)

Štai čia failas:

<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| USER's PHOTO ALBUMS for <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion 7.00
| Filename: user_photo-albums_include.php
| Author: Sergei Gushchin (garry)
| e-mail: <a href="mailto:garry33@yandex.ru"><span style="color:005C5B">garry33@yandex.ru</span></a>
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
 
if ($profile_method == "input") {
	//Nothing here
} elseif ($profile_method == "display" && file_exists(BASEDIR."userphotogallery.php")) {
	$upresult = dbquery(
	"SELECT count(*) cnt FROM ".DB_USERPHOTO_ALBUMS." 
	WHERE ".groupaccess('album_access')." AND album_user='".$lookup."'
	");
	$updata = dbarray($upresult);
	echo "<tr>\n";
	echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".($updata['cnt'] != 0 ? "<a href='".BASEDIR."userphotogallery.php?user_id=".$lookup."'>".$locale['uf_photo-albums']."</a>" : $locale['uf_photo-albums'])."</td>\n";
	echo "<td align='right' class='tbl1'>".number_format($updata['cnt'])."</td>\n";
	echo "</tr>\n";
} elseif ($profile_method == "validate_insert") {
	//Nothing here
} elseif ($profile_method == "validate_update") {
	//Nothing here
} else {
	//Nothing here
}
?>

Redagavo T-Boy· 2011 Vas. 12 14:02:30