aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/include
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-naplo/www/include')
-rw-r--r--mayor-orig/mayor-naplo/www/include/modules/naplo/intezmeny/munkakozosseg.php20
-rw-r--r--mayor-orig/mayor-naplo/www/include/modules/naplo/osztalyozo/vizsga.php2
2 files changed, 19 insertions, 3 deletions
diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/intezmeny/munkakozosseg.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/intezmeny/munkakozosseg.php
index 64d6496d..9827f1f4 100644
--- a/mayor-orig/mayor-naplo/www/include/modules/naplo/intezmeny/munkakozosseg.php
+++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/intezmeny/munkakozosseg.php
@@ -115,8 +115,24 @@
}
function targyModosit($ADAT) {
- $q = "UPDATE targy SET targyJelleg='%s',zaroKovetelmeny='%s',evkoziKovetelmeny='%s',targyRovidNev='%s'";
- $v = array($ADAT['targyJelleg'],$ADAT['zaroKovetelmeny'],$ADAT['evkoziKovetelmeny'],$ADAT['targyRovidNev']);
+ $q = "UPDATE targy SET"; $v = array();
+ if ($ADAT['targyJelleg'] != '') {
+ $q .= " targyJelleg='%s',"; $v[] = $ADAT['targyJelleg'];
+ } else {
+ $q .= " targyJelleg=NULL,";
+ }
+ if ($ADAT['zaroKovetelmeny'] != '') {
+ $q .= "zaroKovetelmeny='%s',"; $v[] = $ADAT['zaroKovetelmeny'];
+ } else {
+ $q .= "zaroKovetelmeny=NULL,";
+ }
+ if ($ADAT['evkoziKovetelmeny'] != '') {
+ $q .= "evkoziKovetelmeny='%s',"; $v[] = $ADAT['evkoziKovetelmeny'];
+ } else {
+ $q .= "evkoziKovetelmeny=NULL,";
+ }
+ $q .= "targyRovidNev='%s'";
+ $v[] = $ADAT['targyRovidNev'];
if (is_numeric($ADAT['kirTargyId'])) {
$q .= ",kirTargyId=%u";
array_push($v,$ADAT['kirTargyId']);
diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/osztalyozo/vizsga.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/osztalyozo/vizsga.php
index 9849255d..077a9252 100644
--- a/mayor-orig/mayor-naplo/www/include/modules/naplo/osztalyozo/vizsga.php
+++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/osztalyozo/vizsga.php
@@ -110,7 +110,7 @@
// eredeti vizsga záradékolása és zárójegyhez kötése
$q = "UPDATE vizsga SET zaradekId=%u, zaroJegyId=%u WHERE vizsgaId=%u";
$v = array($zaradekId, $zaroJegyId, $vizsgaId);
- db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaHalasztas/záradékolás', 'values' => $v));
+ db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaErtekeles/záradékolás', 'values' => $v));
}
}