1
mirror of https://github.com/jakejarvis/spoons.git synced 2025-04-26 12:18:27 -04:00

fix check for heroku db

This commit is contained in:
Jake Jarvis 2017-07-16 13:22:47 -04:00
parent 8af377fdb7
commit da31b934ee

View File

@ -4,7 +4,7 @@
$site_password = getenv('SITE_PASSWORD');
/* database config */
if(isset(getenv('JAWSDB_URL'))) {
if(getenv('JAWSDB_URL') !== null) {
$db_parts = parse_url(getenv('JAWSDB_URL'));
$db_host = $db_parts['host'];