/[drupal]/contributions/modules/ejournal/ejournal.module
ViewVC logotype

Diff of /contributions/modules/ejournal/ejournal.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.9.2.37.2.25, Sat Apr 25 21:08:30 2009 UTC revision 1.9.2.37.2.26, Sat Apr 25 22:05:25 2009 UTC
# Line 1366  function ejournal_journal_store_settings Line 1366  function ejournal_journal_store_settings
1366          }          }
1367    
1368          foreach ($keys as $key) {          foreach ($keys as $key) {
1369      db_query("DELETE FROM {ejournal_store} WHERE jid='%d' AND jkey='%s'", $edit['jid'], $key);      if (isset($edit[$key])) {
1370      if (is_array($edit[$key])) {        db_query("DELETE FROM {ejournal_store} WHERE jid='%d' AND jkey='%s'", $edit['jid'], $key);
1371        foreach ($edit[$key] as $value) {        if (is_array($edit[$key])) {
1372          db_query("INSERT INTO {ejournal_store} (jid, jkey, jvalue) VALUES ('%d', '%s', '%s')", $edit['jid'], $key, $value);          foreach ($edit[$key] as $value) {
1373              db_query("INSERT INTO {ejournal_store} (jid, jkey, jvalue) VALUES ('%d', '%s', '%s')", $edit['jid'], $key, $value);
1374            }
1375          } else {
1376            db_query("INSERT INTO {ejournal_store} (jid, jkey, jvalue) VALUES ('%d', '%s', '%s')", $edit['jid'], $key, $edit[$key]);
1377        }        }
     } else {  
       db_query("INSERT INTO {ejournal_store} (jid, jkey, jvalue) VALUES ('%d', '%s', '%s')", $edit['jid'], $key, $edit[$key]);  
1378      }      }
1379          }          }
1380    

Legend:
Removed from v.1.9.2.37.2.25  
changed lines
  Added in v.1.9.2.37.2.26

  ViewVC Help
Powered by ViewVC 1.1.2