Check if a setting key exists

if (@settings::get('key') != '')

If you wanna make sure it's created in the database you would need to query the database.

why do you ignore warnings with an @ ?

If you don't like it you can perform a database query to make sure a key is present.

$query = database::query(
""select id from "". DB_TABLE_SETTINGS .""
where key = 'key_name'
limit 1;""
);
if (database::num_rows($query)) echo 'key exists';

thx, i know

This thread has been closed due to long inactivity. Posting to it is not possible.
View code on GitHub