Commit 66a1cd11 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Display only 5 views per page

parent 0a21e1c4
......@@ -43,10 +43,8 @@ $prefix = get_config('dbprefix');
$viewdata = get_records_sql_array('SELECT v.id,v.title,v.startdate,v.stopdate,v.description,c.name
FROM ' . $prefix . 'view v
LEFT OUTER JOIN ' . $prefix . 'community c ON v.submittedto = c.id
WHERE v.owner = ' . $userid,'');
// . '
// ORDER BY v.title', '');
WHERE v.owner = ' . $userid . '
ORDER BY v.title', '', $offset, $limit);
$viewidlist = implode(', ', array_map(create_function('$a', 'return $a->id;'), $viewdata));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment