Project

General

Profile

« Previous | Next » 

Revision 4c5c3be4

Added by Andreas Kohlbecker over 11 years ago

avoiding php notice

View differences:

7.x/modules/cdm_dataportal/cdm_api/cdm_api.module
1314 1314
  $cumulated_time_parse += $time_parse;
1315 1315

  
1316 1316
  // Decompose uri into path and query element.
1317
  // URI query elements are stored in an array
1318
  // suitable for drupal_http_build_query()
1317 1319
  $uri_parts = explode("?", $uri);
1318 1320
  $query = array();
1319 1321
  if (count($uri_parts) == 2) {
......
1321 1323
    $queryparts = explode("&", $uri_parts[1]);
1322 1324
    foreach ($queryparts as $querypart) {
1323 1325
      $querypart = explode("=", $querypart);
1324
      $query[$querypart[0]] = $querypart[1];
1326
      if(count($querypart) == 2){
1327
        $query[$querypart[0]] = $querypart[1];
1328
      } else {
1329
        $query[$querypart[0]] = null;
1330
      }
1325 1331
    }
1326 1332
  }
1327 1333
  else {

Also available in: Unified diff