Fatal error: Call to a member function fetch_assoc() on a non-object (Need help please)
<pre><code>/**
 * Get a system setting
 * @param string $setting
 */
function getSettings($setting) {
    $query = $this-&gt;con-&gt;query("SELECT * FROM `sitesettings`");
    if ($result = $query-&gt;fetch_assoc()) {
        return $result[$setting];
    } else {
        return false;
    }
}
</code></pre>

<p>I get the following when using this "Fatal error: Call to a member function var_dump() on a non-object in /home/a4996769/public_html/system/modules/Server.class.php on line 54"</p>

<p>I am new here, help would be greatly appreciated </p>
