Редакция 514 | Редакция 516 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 514 | Редакция 515 | ||
---|---|---|---|
Строка 344... | Строка 344... | ||
344 | $rq =& $this->db->query($query); |
344 | $rq =& $this->db->query($query); |
345 | if (PEAR::isError($this->db)) { |
345 | if (PEAR::isError($this->db)) { |
346 | $result["ERR"] = 1; |
346 | $result["ERR"] = 1; |
347 | $result["ERRINFO"] = $this->db->getMessage(); |
347 | $result["ERRINFO"] = $this->db->getMessage(); |
348 | } else { |
348 | } else { |
349 | $rq->fetchInto($element); |
- | |
350 | $result["ERR"] = 0; |
349 | $result["ERR"] = 0; |
351 | }
|
350 | }
|
352 | 351 | ||
353 | return $result; |
352 | return $result; |
354 | }
|
353 | }
|
Строка 378... | Строка 377... | ||
378 | $rq =& $this->db->query($query); |
377 | $rq =& $this->db->query($query); |
379 | if (PEAR::isError($this->db)) { |
378 | if (PEAR::isError($this->db)) { |
380 | $result["ERR"] = 1; |
379 | $result["ERR"] = 1; |
381 | $result["ERRINFO"] = $this->db->getMessage(); |
380 | $result["ERRINFO"] = $this->db->getMessage(); |
382 | } else { |
381 | } else { |
383 | $rq->fetchInto($element); |
- | |
384 | $result["ERR"] = 0; |
382 | $result["ERR"] = 0; |
385 | }
|
383 | }
|
386 | 384 | ||
387 | return $result; |
385 | return $result; |
388 | }
|
386 | }
|
Строка 448... | Строка 446... | ||
448 | $rq =& $this->db->query($query); |
446 | $rq =& $this->db->query($query); |
449 | if (PEAR::isError($this->db)) { |
447 | if (PEAR::isError($this->db)) { |
450 | $result["ERR"] = 1; |
448 | $result["ERR"] = 1; |
451 | $result["ERRINFO"] = $this->db->getMessage(); |
449 | $result["ERRINFO"] = $this->db->getMessage(); |
452 | } else { |
450 | } else { |
453 | $rq->fetchInto($element); |
- | |
454 | $result["ERR"] = 0; |
451 | $result["ERR"] = 0; |
455 | }
|
452 | }
|
456 | 453 | ||
457 | return $result; |
454 | return $result; |
458 | }
|
455 | }
|
Строка 480... | Строка 477... | ||
480 | $rq =& $this->db->query($query); |
477 | $rq =& $this->db->query($query); |
481 | if (PEAR::isError($this->db)) { |
478 | if (PEAR::isError($this->db)) { |
482 | $result["ERR"] = 1; |
479 | $result["ERR"] = 1; |
483 | $result["ERRINFO"] = $this->db->getMessage(); |
480 | $result["ERRINFO"] = $this->db->getMessage(); |
484 | } else { |
481 | } else { |
485 | $rq->fetchInto($element); |
- | |
486 | $result["ERR"] = 0; |
482 | $result["ERR"] = 0; |
487 | }
|
483 | }
|
488 | 484 | ||
489 | return $result; |
485 | return $result; |
490 | }
|
486 | }
|
Строка 507... | Строка 503... | ||
507 | $rq =& $this->db->query($query); |
503 | $rq =& $this->db->query($query); |
508 | if (PEAR::isError($this->db)) { |
504 | if (PEAR::isError($this->db)) { |
509 | $result["ERR"] = 1; |
505 | $result["ERR"] = 1; |
510 | $result["ERRINFO"] = $this->db->getMessage(); |
506 | $result["ERRINFO"] = $this->db->getMessage(); |
511 | } else { |
507 | } else { |
512 | $rq->fetchInto($element); |
- | |
513 | $result["ERR"] = 0; |
508 | $result["ERR"] = 0; |
514 | }
|
509 | }
|
515 | 510 | ||
516 | // Удаление репозиториев этой версии дистрибутива
|
511 | // Удаление репозиториев этой версии дистрибутива
|
517 | $query = "DELETE FROM ".$this->prefix."repository WHERE version='".$sVersID."'"; |
512 | $query = "DELETE FROM ".$this->prefix."repository WHERE version='".$sVersID."'"; |