Fix for latest hen script.

11/30/2011 11:24 RumorUS#1
my stuff is removed cuz of ungratefulness of community
11/30/2011 14:31 ¢ýL#2
Good Job it will help the members
12/19/2011 21:47 Computerfreek#3
Repost, da es möglicherweise noch einigen helfen könnte:

Quote:
Originally Posted by RumorUS View Post
The normal itemshop.php from latest hen script (translated to English, code remains default):



If you do not enter a description for an item it has an undefined index error.

You must change this:
PHP Code:
<td class="tdunkel"><?PHP echo $getItems->Description?></td>
To this:
PHP Code:
<td class="tdunkel"><?PHP if(!empty($getItems->Description)) echo $getItems->Description?></td>
Also in register.php, this was already fixed by my old partner BEST, but it appears it was not released in the latest script from hen.

Change this:
PHP Code:
if($serverSettings['register_on'] && (!isset($_SESSION['user_admin']) && !checkInt($_SESSION['user_admin']) && !$_SESSION['user_admin']>=0)) { 
To this:
PHP Code:
if($serverSettings['register_on'] && (!isset($_SESSION['user_admin']) || !checkInt($_SESSION['user_admin']) && !$_SESSION['user_admin']>=0)) { 
Also, in is_buy.php of the latest script there is a typo of the word "vnum".

Change this:
PHP Code:
$getGroesse compareItems($getItem->vnu); 
To this:
PHP Code:
$getGroesse compareItems($getItem->vnum);