function _shib_auth_db_table_exists in Shibboleth Authentication 6.4
It's needed because db_table_exists() does not escape sql wildcard character '_'
1 call to _shib_auth_db_table_exists()
- shib_auth_update_6400 in ./
shib_auth.install - Implementation of hook_update().
File
- ./
shib_auth.install, line 79 - This is the install file of the Shibboleth authentication module for Drupal system
Code
function _shib_auth_db_table_exists($table) {
$table = preg_replace('/_/', '\\_', $table);
return (bool) db_fetch_object(db_query("SHOW TABLES LIKE '{" . $table . "}'"));
}