Projet

Général

Profil

Révision b42754b9

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ldap/ldap_views/plugins/ldap_views_plugin_query_ldap.inc
204 204
   * $view->result should contain an array of objects.
205 205
   */
206 206
  function execute(&$view) {
207
    $start       = microtime();
207
    $start       = microtime(TRUE);
208 208
    $entries     = array();
209 209
    $num_entries = 0;
210 210

  
......
258 258

  
259 259
    foreach ($entries as $key => &$entry) {
260 260
      if (isset($entry['jpegphoto'])) {
261
        $entry['jpegphoto'][0] = "<img src='data:image/jpeg;base64," . base64_encode($entry['jpegphoto'][0]) . "' alt='photo' />";
261
        $entry['jpegphoto'][0] = '<img src="data:image/jpeg;base64,' . base64_encode($entry['jpegphoto'][0]) . '" alt="photo" />';
262
      }
263
      if (isset($entry['thumbnailphoto'])) {
264
        $entry['thumbnailphoto'][0] = '<img src="data:image/jpeg;base64,' . base64_encode($entry['thumbnailphoto'][0]) . '" alt="photo" />';
262 265
      }
263 266
      foreach ($view->field as $field) {
264 267
        if (! isset($field_alias[$field->field_alias])) {
......
338 341

  
339 342
    $view->result       = $result;
340 343
    $view->total_rows   = $num_entries;
341
    $view->execute_time = microtime() - $start;
344
    $view->execute_time = microtime(TRUE) - $start;
342 345
    $view->query->pager->total_items  = $num_entries;
343 346
    $view->query->pager->update_page_info();
344 347

  

Formats disponibles : Unified diff