| version 1.148, 2004/11/02 19:36:43 |
version 1.149, 2004/11/02 20:08:11 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.147 2004/07/15 13:41:14 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.148 2004/11/02 19:36:43 nepto Exp $ */ |
| |
|
| /* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
| edited are defined in the calling program. |
edited are defined in the calling program. |
| Line 1433 function phpMyEdit_filter_handler(theFor |
|
| Line 1433 function phpMyEdit_filter_handler(theFor |
|
| |
|
| function get_sfn_cgi_vars($alternative_sfn = null) /* {{{ */ |
function get_sfn_cgi_vars($alternative_sfn = null) /* {{{ */ |
| { |
{ |
| if ($alternative_sfn == null) { // FAST! (cached return value) |
if ($alternative_sfn === null) { // FAST! (cached return value) |
| static $ret = null; |
static $ret = null; |
| $ret == null && $ret = $this->get_sfn_cgi_vars($this->sfn); |
$ret == null && $ret = $this->get_sfn_cgi_vars($this->sfn); |
| return $ret; |
return $ret; |
| Line 2674 function phpMyEdit_filter_handler(theFor |
|
| Line 2674 function phpMyEdit_filter_handler(theFor |
|
| Note that entries like [0]=>'9' [1]=>'-9' are correct and they will |
Note that entries like [0]=>'9' [1]=>'-9' are correct and they will |
| have desirable sorting behaviour. So there is no need to remove them. |
have desirable sorting behaviour. So there is no need to remove them. |
| */ |
*/ |
| for ($k = 0; ! $this->displayed[$k]; $k++); |
|
| $this->sfn[] = "$k"; // important quotes |
|
| $this->sfn = array_unique($this->sfn); |
$this->sfn = array_unique($this->sfn); |
| $check_ar = array(); |
$check_ar = array(); |
| foreach ($this->sfn as $key => $val) { |
foreach ($this->sfn as $key => $val) { |