projects
/
diogenes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clarify use of mysql_fetch_array : we really want mysql_fetch_assoc
[diogenes.git]
/
include
/
diogenes
/
diogenes.table-editor.inc.php
diff --git
a/include/diogenes/diogenes.table-editor.inc.php
b/include/diogenes/diogenes.table-editor.inc.php
index
22ec589
..
75ebe32
100644
(file)
--- a/
include/diogenes/diogenes.table-editor.inc.php
+++ b/
include/diogenes/diogenes.table-editor.inc.php
@@
-255,7
+255,7
@@
class DiogenesTableEditor extends DiogenesDatabaseTable {
$sql = $this->make_select(false,$id);
$res = $this->dbh->query($sql);
$sql = $this->make_select(false,$id);
$res = $this->dbh->query($sql);
- if ($myrow = mysql_fetch_a
rray
($res)) {
+ if ($myrow = mysql_fetch_a
ssoc
($res)) {
$this->id = $id;
foreach ($this->vars as $key => $val) {
$this->vars[$key]['value'] = $myrow[$key];
$this->id = $id;
foreach ($this->vars as $key => $val) {
$this->vars[$key]['value'] = $myrow[$key];
@@
-491,7
+491,7
@@
class DiogenesTableEditor extends DiogenesDatabaseTable {
$p_stop = $this->maxrows ? min($p_total, $p_start + $this->maxrows) : $p_total;
$counter = 0;
$p_stop = $this->maxrows ? min($p_total, $p_start + $this->maxrows) : $p_total;
$counter = 0;
- while (($counter < $p_stop) and ($myarr = mysql_fetch_a
rray
($res))) {
+ while (($counter < $p_stop) and ($myarr = mysql_fetch_a
ssoc
($res))) {
if ($counter >= $p_start) {
$actions = array();
foreach ($this->actions as $myaction) {
if ($counter >= $p_start) {
$actions = array();
foreach ($this->actions as $myaction) {