function checkForPrefs($data_dir, $username) { $db = new dbPrefs(); if (isset($db->error)) { $db->failQuery(); } }