Permalink
Browse files

Remove getLatestSession

  • Loading branch information...
1 parent e4624c5 commit a683a02b65c1bb823ebcd4a653a55e2ca860fb58 @birtles birtles committed Mar 19, 2013
Showing with 0 additions and 24 deletions.
  1. +0 −24 wall/lib/walls.inc
View
24 wall/lib/walls.inc
@@ -124,30 +124,6 @@ function getActiveSessionId($wallId) {
return $res;
}
-function getLatestSession($wallId) {
- $conn =& getDbConnection();
- $row =& $conn->queryRow(
- 'SELECT sessionId, beginDate, endDate'
- .' FROM sessions'
- .' WHERE wallId='.$conn->quote($wallId, 'integer')
- .' ORDER BY sessionId DESC'
- .' LIMIT 1',
- null,
- MDB2_FETCHMODE_ASSOC
- );
- if (PEAR::isError($row)) {
- error_log($row->getMessage() . ', ' . $row->getDebugInfo());
- throw new KeyedException('db-error');
- }
- if (!$row)
- return null;
- return array(
- 'id' => intval($row['sessionid']),
- 'start' => $row['begindate'],
- 'end' => $row['enddate'],
- );
-}
-
function getWallDuration($wallId) {
$conn =& getDbConnection();
$res =& $conn->query(

0 comments on commit a683a02

Please sign in to comment.