summaryrefslogtreecommitdiffstats
path: root/lib/class/dba.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-04-21 03:21:20 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-04-21 03:21:20 +0000
commit310adfa35923938b97ea416cd21c431d64eaa05a (patch)
tree245aba68464905bdb5d0072918aa0f5b621290cb /lib/class/dba.class.php
parent67981be0c675d0685bc6e986e6cf5e5fb6cae611 (diff)
downloadampache-310adfa35923938b97ea416cd21c431d64eaa05a.tar.gz
ampache-310adfa35923938b97ea416cd21c431d64eaa05a.tar.bz2
ampache-310adfa35923938b97ea416cd21c431d64eaa05a.zip
last commit before beta3 release
Diffstat (limited to 'lib/class/dba.class.php')
-rw-r--r--lib/class/dba.class.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php
index 71e6b6c8..e9d0304d 100644
--- a/lib/class/dba.class.php
+++ b/lib/class/dba.class.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2008 Ampache.org
+ Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -130,6 +130,17 @@ class Dba {
} // num_rows
/**
+ * finish
+ * This closes a result handle and clears the memory assoicated with it
+ */
+ public static function finish($resource) {
+
+ // Clear the result memory
+ mysql_free_result($resource);
+
+ } // finish
+
+ /**
* affected_rows
* This emulates the mysql_affected_rows function
*/