$linkResource = sqlConnectToDatabase(getSession('mysql_host'), getSession('mysql_login'), getSession('mysql_password1'), __FUNCTION__, __LINE__);
// Is this a link resource?
- if (!is_resource($linkResource)) {
+ if (!isValidSqlLink($linkResource)) {
// Is not a resource
reportBug(__FUNCTION__, __LINE__, 'linkResource[]=' . gettype($linkResource) . ', expected: link resource');
} elseif (!isSqlLinkUp()) {
array($tableName), __FUNCTION__, __LINE__);
// Is a link there?
- if (!is_resource($result)) {
+ if (!isValidSqlLink($result)) {
// Is installation phase?
if (isInstaller()) {
// Then silently abort here
), __FUNCTION__, __LINE__);
// Is a link there?
- if (!is_resource($result)) {
+ if (!isValidSqlLink($result)) {
// Is installation phase?
if (isInstaller()) {
// Then silently abort here
$result = sqlQueryEscaped("SHOW INDEX FROM `%s`", array($tableName), __FUNCTION__, __LINE__);
// Is a link there?
- if (!is_resource($result)) {
+ if (!isValidSqlLink($result)) {
// Is installation phase?
if (isInstaller()) {
// Then silently abort here