Commit cbe5df6fd2dfdea9f61d0a453045284dd23823f8

Authored by Michael Joseph
1 parent 888b7393

simplified array appending code


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2057 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 4 deletions
lib/web/WebDocument.inc
... ... @@ -190,11 +190,8 @@ class WebDocument {
190 190 $sql = $default->db;
191 191 $result = $sql->query("SELECT * FROM " . $default->owl_web_documents_table . (isset($sWhereClause) ? " WHERE " . $sWhereClause : ""));
192 192 if ($result) {
193   - $iCount = 0;
194 193 while ($sql->next_record()) {
195   - $oWebDocument = & WebDocument::get($sql->f("id"));
196   - $aWebDocumentArray[$iCount] = $oWebDocument;
197   - $iCount++;
  194 + $aWebDocumentArray[]= & WebDocument::get($sql->f("id"));
198 195 }
199 196 return $aWebDocumentArray;
200 197 }
... ...