From: <ch...@us...> - 2011-01-15 21:13:17
|
Revision: 31925 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=31925&view=rev Author: chealer Date: 2011-01-15 21:13:11 +0000 (Sat, 15 Jan 2011) Log Message: ----------- remove list_user_calIds() (unused since r23181) Modified Paths: -------------- trunk/lib/calendar/calendarlib.php Modified: trunk/lib/calendar/calendarlib.php =================================================================== --- trunk/lib/calendar/calendarlib.php 2011-01-15 19:07:23 UTC (rev 31924) +++ trunk/lib/calendar/calendarlib.php 2011-01-15 21:13:11 UTC (rev 31925) @@ -60,26 +60,6 @@ return $retval; } - // give out an array with Ids viewable by $user - function list_user_calIds() { - global $user; - if ($user) { - global $userlib; - //$groups = $userlib->get_user_groups($user); - // need to add something - $query = "select `calendarId` from `tiki_calendars` where `user`=? or `personal`='n'"; - $bindvars=array($user); - } else { - $query = "select `calendarId` from `tiki_calendars`"; - $bindvars=array(); - } - $result = $this->query($query,$bindvars); - $res = array(); - while ($r = $result->fetchRow()) { - $res[] = $r['calendarId']; - } - return $res; - } function get_calendarId_from_name($name) { $query = 'select `calendarId` from `tiki_calendars` where `name`=?'; return $this->getOne($query, array($name)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |