Skip to content

Commit

Permalink
Merge pull request #7 from shortsteps/master
Browse files Browse the repository at this point in the history
Resolve #5
  • Loading branch information
zakkak committed Jun 30, 2017
2 parents cbfb18f + e669d29 commit d348306
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qa-user-email-notifications-event.php
Expand Up @@ -235,7 +235,9 @@ function admin_form(&$qa_content)
function user_email_notification_table_exists ()
{
$res = qa_db_query_sub("SELECT COUNT(*) AS count FROM information_schema.tables WHERE table_schema = '". QA_MYSQL_DATABASE ."' AND table_name = '^useremailsubscription'");
return mysql_result($res, 0) == 1;
mysqli_data_seek($res, 0);
$row = mysqli_fetch_array($res);
return $row[0] == 1;
}

function user_email_notification_send_email($params)
Expand Down

0 comments on commit d348306

Please sign in to comment.