[art-web] [views/backgrounds] check index exists before accessing $_GET array
- From: Thomas Wood <thos src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [art-web] [views/backgrounds] check index exists before accessing $_GET array
- Date: Sat, 31 Oct 2009 23:14:30 +0000 (UTC)
commit 47b8429328f6f49bc8708a9eb8ffd3d0bfc386a3
Author: Thomas Wood <thos gnome org>
Date: Sat Oct 31 23:14:43 2009 +0000
[views/backgrounds] check index exists before accessing $_GET array
views/backgrounds.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/views/backgrounds.php b/views/backgrounds.php
index 76ec58d..927e641 100644
--- a/views/backgrounds.php
+++ b/views/backgrounds.php
@@ -55,7 +55,7 @@ if (!$view_data)
}
/* get the current page and ensure a default value is set */
-$cur_page = $_GET['page'];
+$cur_page = GET ('page');
if (!is_numeric ($cur_page))
$cur_page = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]