]> git.mxchange.org Git - mailer.git/blobdiff - inc/db/lib-mysql.php
introduced isSqlResult() which encapsulates checking MySQL/i results
[mailer.git] / inc / db / lib-mysql.php
index 082e4c87a13d548d13b94c5b90a7f0d407a18f32..56cfe52861e791f6fa7a9c6dbc9cf989a2980cd9 100644 (file)
@@ -11,7 +11,7 @@
  * Kurzbeschreibung  : Datenbankschicht fuer PHP 5.4 und aelter         *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -360,5 +360,11 @@ function isValidSqlLink ($linkResource) {
        return is_resource($linkResource);
 }
 
+// Checks whether given result is a valid SQL result
+function isSqlResult ($result) {
+       // TODO: Can't this be made better?
+       return is_resource($result);
+}
+
 // [EOF]
 ?>