projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git+ssh://github.com/adefaria/clearscm
[clearscm.git]
/
maps
/
php
/
MAPS.php
diff --git
a/maps/php/MAPS.php
b/maps/php/MAPS.php
index
0def4ba
..
9b94c17
100755
(executable)
--- a/
maps/php/MAPS.php
+++ b/
maps/php/MAPS.php
@@
-57,6
+57,14
@@
function OpenDB() {
or DBError("OpenDB: Unable to select MAPS database", "adefaria_maps");
} // OpenDB
or DBError("OpenDB: Unable to select MAPS database", "adefaria_maps");
} // OpenDB
+function CloseDB() {
+ global $db;
+
+ if (isset ($db)) {
+ mysqli_close($db);
+ } // if
+} // CloseDB
+
function SetContext($new_userid) {
global $userid;
function SetContext($new_userid) {
global $userid;
@@
-524,9
+532,11
@@
function Space() {
strlen($row["subject"]) +
strlen($row["timestamp"]) +
strlen($row["data"]);
strlen($row["subject"]) +
strlen($row["timestamp"]) +
strlen($row["data"]);
- $space
= $space +
$msg_space;
+ $space
+=
$msg_space;
} // while
} // while
+ mysqli_free_result($result);
+
return $space;
} // Space
?>
return $space;
} // Space
?>