//
function check_table($pref, $table, $field=null, $properties=null)
{
- $fields = db_query("SHOW COLUMNS FROM ".$pref.$table);
+ $fields = @db_query("SHOW COLUMNS FROM ".$pref.$table);
if (!$fields)
return 1; // no such table or error
{ // re-read the prefs
global $path_to_root;
include_once($path_to_root . "/admin/db/users_db.inc");
- $user = get_user($_SESSION["wa_current_user"]->username);
+ $user = get_user_by_login($_SESSION["wa_current_user"]->username);
$_SESSION["wa_current_user"]->prefs = new user_prefs($user);
display_notification(_('All companies data has been successfully updated'));
}