You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 23, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,11 +42,11 @@ This matches picture selection I see on pages 1 and 2.
42
42
## My implementation of a fix ##
43
43
For my impletation of a fix I read all of the gallery into an array then select the portion of the array needed for each page. While not ideal particularly for large galleries it does fix the problem.
44
44
```
45
-
$picarray = $wpdb->get_col("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY {$ngg->options['galSort']} {$ngg->options['galSortDir']} LIMIT $start, 10 ");
45
+
if ( $galleryID != 0 ){
46
+
$picarray = $wpdb->get_col("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY {$ngg->options['galSort']} {$ngg->options['galSortDir']} ");
47
+
$picarray = array_slice($picarray, $start, 10 );
48
+
}
46
49
```
47
50
48
51
## Bug Status at NextGEN ##
49
52
As of 8/27/2018 NextGEN has a test version of the plugin which fixes the problem but it has not yet been released.
0 commit comments