| @@ 84-91 (lines=8) @@ | ||
| 81 | throw new Exception($result->getUserInfo()); |
|
| 82 | } |
|
| 83 | ||
| 84 | if ($row = $result->fetchRow(MDB2_FETCHMODE_ASSOC)) { |
|
| 85 | $this->value = $row; |
|
| 86 | $this->address = $this->getAddress(); |
|
| 87 | return $this->id; |
|
| 88 | } else { |
|
| 89 | $this->id = 0; |
|
| 90 | return 0; |
|
| 91 | } |
|
| 92 | $result->free(); |
|
| 93 | } |
|
| 94 | ||
| @@ 116-122 (lines=7) @@ | ||
| 113 | if (PEAR::isError($result)) { |
|
| 114 | throw new Exception($result->getUserInfo()); |
|
| 115 | } |
|
| 116 | if ($result->numRows() == 1) { |
|
| 117 | $row = $result->fetchRow(MDB2_FETCHMODE_ASSOC); |
|
| 118 | $this->value = $row; |
|
| 119 | return $this->id; |
|
| 120 | } else { |
|
| 121 | return ($this->id = 0); |
|
| 122 | } |
|
| 123 | } |
|
| 124 | ||
| 125 | /** |
|