Topic: small bug item units db
the function get_unit_descr($unit) on line no 44 defined in inventory/includes/db/item_units_db.inc file
instead of name you are selecting description column which does not exist in db
function get_unit_descr($unit)
{
$sql = "SELECT description FROM ".TB_PREF."item_units WHERE abbr=".db_escape($unit);
$result = db_query($sql, "could not unit description");
$row = db_fetch_row($result);
return $row[0];
}
change to
function get_unit_descr($unit)
{
$sql = "SELECT name FROM ".TB_PREF."item_units WHERE abbr=".db_escape($unit);
$result = db_query($sql, "could not retrieve unit name");
$row = db_fetch_row($result);
return $row[0];
}
Experience is the name everyone gives to their mistakes!