com web/php: show top search result: results.php

From: Date: Tue, 05 Jul 2011 22:32:56 +0000
Subject: com web/php: show top search result: results.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23512@lists.php.net to get a copy of this message
Commit: 7c5bd46ef7ab2723b2a287bf0b5f35c4b4bf90a1 Author: Peter Cowburn <salathe@php.net> Tue, 5 Jul 2011 22:32:56 +0000 Parents: 0850e28f0737a5a83b91f7992046a6a3d1865b4e Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=7c5bd46ef7ab2723b2a287bf0b5f35c4b4bf90a1 Log: show top search result Changed paths: M results.php Diff: diff --git a/results.php b/results.php index 0e6c2b2..64ce6d0 100644 --- a/results.php +++ b/results.php @@ -35,7 +35,7 @@ if(strlen($l)>2) $l = substr($l,0,2); // Just take the first 2 chars. eg. pt_BR $q = urlencode($q); $l = urlencode($l); -$s = (isset($_GET['start']) && is_numeric($_GET['start']) && $_GET['start']!=0) ? (int)$_GET['start'] : 1; +$s = (isset($_GET['start']) && is_numeric($_GET['start'])) ? (int)$_GET['start'] : 0; $profile = (isset($_GET['p']) && is_string($_GET['p'])) ? $_GET['p'] : 'all'; $per_page = 10;

« previous php.webmaster (#23512) next »